Package: release.debian.org Severity: normal User: [email protected] Usertags: unblock
Please unblock package nis [ Reason ] Fixes serious bug #988227 (bashism in postinst). [ Impact ] Upgrade not smoothly done from stable. [ Tests ] No autopkg test. Manually tested with dash. [ Risks ] None. [ Checklist ] [x] all changes are documented in the d/changelog [x] I reviewed all changes and I approve them [x] attach debdiff against the package in testing [ Other info ] Native migration package only. unblock nis/4.3 -- Francesco P. Lovergine
diff -Nru nis-4.2/debian/changelog nis-4.3/debian/changelog --- nis-4.2/debian/changelog 2021-01-31 10:22:32.000000000 +0100 +++ nis-4.3/debian/changelog 2021-05-08 17:19:24.000000000 +0200 @@ -1,3 +1,10 @@ +nis (4.3) unstable; urgency=medium + + * Fixed a sort-of bashism in postinst. + (closes: #988227) + + -- Francesco Paolo Lovergine <[email protected]> Sat, 08 May 2021 17:19:24 +0200 + nis (4.2) unstable; urgency=medium * Missed removing of /etc/init.d/nis at upgrade time added. diff -Nru nis-4.2/debian/postinst nis-4.3/debian/postinst --- nis-4.2/debian/postinst 2021-01-31 10:22:32.000000000 +0100 +++ nis-4.3/debian/postinst 2021-05-08 17:19:24.000000000 +0200 @@ -73,10 +73,13 @@ case "$1" in configure) PREV_VER="$2" - if [ ! -z "$PREV_VER" -a $(dpkg --compare-versions "$PREV_VER" lt '4~'; echo $?) -eq 0 ] - then - upgrade_old - fi + if [ ! -z "$PREV_VER" ] + then + if dpkg --compare-versions "$PREV_VER" lt '4~' + then + upgrade_old + fi + fi rm -f /etc/init.d/nis ;; *)

