|Unpacking [[:print:]]+ \([[:print:]]+\)( over \([[:print:]]+\))? \.\.\.|IGNORE
Adding diversion(s):|Adding '"'"'diversion of ([[:print:]]+) to ([[:print:]]+) by ([[:print:]]+)'"'"'| \3:[\1 → \2]
Created symlink(s):|Created symlink '"'"'([[:print:]]+)'"'"' → '"'"'([[:print:]]+)'"'"'\.| [\1 → \2]
-Dependencies:|([[:print:]]+) depends on ([[:print:]]+)( \([>=]+ [[:print:]]+\))?\.|[\2 → \1]
+FOLLOW_PREFIX|([[:print:]]+) depends on ([[:print:]]+)( \([>=]+ [[:print:]]+\))?\.|[\2 → \1]
Installing new version of config file(s):|Installing new version of config file ([[:print:]]+) \.\.\.|\1
Processing triggers for:|Processing triggers for ([[:print:]]+) \([[:print:]]+\) \.\.\.|\1
Purging configuration files:|Purging configuration files for ([[:print:]]+) \([[:print:]]+\) \.\.\.|\1
Updating to current default:|Updating ([[:print:]]+) to current default.|\1
disabled or static unit, so not starting:|([[:print:]]+) is a disabled or a static unit, not starting it\.|\1
disabled or static unit not running, so not starting:|([[:print:]]+) is a disabled or a static unit not running, not starting it\.|\1
-dpkg warning: unable to delete old directories (not empty):|dpkg: warning: unable to delete old directory '"'"'([[:print:]]+)'"'"': Directory not empty|\1
+BECOME_NEXT_PREFIX|dpkg: ([[:print:]]+) dependency problems, but removing anyway as you requested:|dpkg warns: despite dependency problems, removing \1 – dependencies:
+dpkg warns: unable to delete old directories (not empty):|dpkg: warning: unable to delete old directory '"'"'([[:print:]]+)'"'"': Directory not empty|\1
update-alternatives: providing in auto mode:|update-alternatives: using ([[:print:]]+) to provide ([[:print:]]+) \(([[:print:]]+)\) in auto mode| [\1 → \2 (\3)]'
_LAST_PREFIX=''
_REPLACEMENT=$(printf '%s' "${_WHITESPACED}" | cut -d'|' -f3)
if printf '%s' "${_LINE}" | grep -E "${_PATTERN}" > /dev/null; then
_COMPRESSED_ITEM=$(printf '%s' "${_LINE}" | sed -E "s|${_PATTERN}|${_REPLACEMENT}|")
+ if [ "${_PREFIX}" = "BECOME_NEXT_PREFIX" ]; then
+ _LEADER_PREFIX="${_COMPRESSED_ITEM}"
+ _COMPRESSED_ITEM=IGNORE
+ elif [ "${_PREFIX}" = "FOLLOW_PREFIX" ]; then
+ _PREFIX="${_LEADER_PREFIX}"
+ fi
break
fi
done