[Piuparts-commits] [piuparts] 02/03: fix the nsswitch.conf upgrade workarounds
Holger Levsen
holger at moszumanska.debian.org
Wed Jun 17 13:12:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository piuparts.
commit 6889df7ba21a909c26e26fc2f55bb1ef899e888d
Author: Andreas Beckmann <anbe at debian.org>
Date: Wed Jun 17 14:21:03 2015 +0200
fix the nsswitch.conf upgrade workarounds
the gshadow line addition/deletion logic was somehow inverted ...
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
custom-scripts/scripts/post_distupgrade_exceptions | 6 +++---
debian/changelog | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/custom-scripts/scripts/post_distupgrade_exceptions b/custom-scripts/scripts/post_distupgrade_exceptions
index cfebbcb..cfc1ab7 100755
--- a/custom-scripts/scripts/post_distupgrade_exceptions
+++ b/custom-scripts/scripts/post_distupgrade_exceptions
@@ -50,9 +50,9 @@ fi
if [ "$PIUPARTS_DISTRIBUTION" = "jessie" ]; then
# base-files only upgrades pristine /etc/nsswitch.conf
- if grep -q ^gshadow: /etc/nsswitch.conf ; then
- echo "Removing gshadow line from /etc/nsswitch.conf"
- sed -i /^gshadow:/d /etc/nsswitch.conf
+ if ! grep -q ^gshadow: /etc/nsswitch.conf ; then
+ echo "Adding gshadow line to /etc/nsswitch.conf"
+ sed -i '/^shadow:/a gshadow: files' /etc/nsswitch.conf
fi
fi
diff --git a/debian/changelog b/debian/changelog
index fa00be9..ad91717 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ piuparts (0.65) UNRELEASED; urgency=medium
[ Andreas Beckmann ]
* piuparts.py:
- Ensure /etc/mtab exists in the chroot.
+ * scripts/post_distupgrade_exceptions:
+ - Fix the /etc/nsswitch.conf wheezy -> jessie upgrade handling.
-- Holger Levsen <holger at debian.org> Fri, 12 Jun 2015 13:43:42 +0200
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list