This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=03abb4932e9c149ba872d0d0b9e115452a130df7 commit 03abb4932e9c149ba872d0d0b9e115452a130df7 Author: Guillem Jover <[email protected]> AuthorDate: Thu Mar 23 23:56:56 2023 +0100 debian: Remove no longer needed alternatives fixup from postint This was a short-lived issue that was hot-fixed a few days after the initial release, but has been kept for the entire cycle to catch any straggler systems that might have not been updated since. After a release it should be safe now to remove. --- debian/dpkg.postinst | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst index ac2ad079a..867a9e692 100644 --- a/debian/dpkg.postinst +++ b/debian/dpkg.postinst @@ -51,55 +51,8 @@ check_merged_usr_via_aliased_dirs() done } -# Version 1.21.0 had bogus handling of DPKG_ADMINDIR in update-alternatives, -# and misplaced them, fix them up. -fixup_misplaced_alternatives() -( - admindir=${DPKG_ADMINDIR:-/var/lib/dpkg} - - cd "$admindir" - - for file in *; do - if ! [ -f "$file" ]; then - # Ignore anything that is not a file. - continue - fi - - # Check whether this is a known file we do not want to act on. - case "$file" in - arch|\ - available|available-old|\ - cmethopt|methlock|\ - diversions|diversions-old|\ - lock|lock-frontend|\ - statoverride|statoverride-old|\ - status|status-old) - # Ignore known files just to make sure. - continue - ;; - *) - esac - - # Check whether the file looks like an alternative state file. - mode="$(head -1 "$file")" - case "$mode" in - auto|manual) - # Looks like a state file, we will handle this one. - echo "Moving misplaced alternative state file $admindir/$file..." - mv "$file" "alternatives/$file" - ;; - *) - warning "unknown dpkg database file $admindir/$file is not a misplaced alternative state... leaving as is" - continue - ;; - esac - done -) - case "$1" in configure) - fixup_misplaced_alternatives - check_merged_usr_via_aliased_dirs ;; abort-upgrade|abort-deconfigure|abort-remove) -- Dpkg.Org's dpkg

