[Piuparts-commits] [piuparts] 01/01: post_setup_zz_backports: improve systemd/udev handling for jessie-backports
Holger Levsen
holger at layer-acht.org
Wed Mar 22 14:20:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit ca96084389a1d9ad39f4aa704bb3c8c4bd9bef57
Author: Andreas Beckmann <anbe at debian.org>
Date: Wed Mar 22 14:47:07 2017 +0100
post_setup_zz_backports: improve systemd/udev handling for jessie-backports
upgrade systemd+udev to jessie-backports in the reference chroot, to
avoid downgrading them to the jessie versions during restore_selections()
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
custom-scripts/scripts/post_setup_zz_backports | 23 +++++++++++++++++++++++
debian/changelog | 2 ++
2 files changed, 25 insertions(+)
diff --git a/custom-scripts/scripts/post_setup_zz_backports b/custom-scripts/scripts/post_setup_zz_backports
new file mode 100755
index 0000000..00872e6
--- /dev/null
+++ b/custom-scripts/scripts/post_setup_zz_backports
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -e
+
+is_installed()
+{
+ local pkg="$1"
+ dpkg-query -s "$pkg" >/dev/null 2>&1 || return 1
+ local status="$(dpkg-query -W -f '${Status}' $pkg)"
+ test "$status" != "unknown ok not-installed" || return 1
+ test "$status" != "deinstall ok config-files" || return 1
+ return 0
+}
+
+PKGS=""
+
+if [ "$PIUPARTS_DISTRIBUTION" = "jessie-backports" ]; then
+ ! is_installed systemd || PKGS="${PKGS} systemd"
+ ! is_installed udev || PKGS="${PKGS} udev"
+fi
+
+if [ -n "$PKGS" ]; then
+ apt-get -y -t "$PIUPARTS_DISTRIBUTION" install $PKGS
+fi
diff --git a/debian/changelog b/debian/changelog
index bc80673..273e703 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -30,6 +30,8 @@ piuparts (0.77) UNRELEASED; urgency=medium
once per month.
* custom-scripts: Check for dummy package "TARBALL" to detect tarball
creation phase.
+ * scripts/post_setup_zz_backports: Avoid downgrading systemd/udev from
+ jessie-backports to jessie during removal phase. (Closes: #856845)
* master-bin/detect_archive_issues:
- Look at failed logs older than 24 hours (48 hours previously).
- Mark logfiles for immediate recycling upon first appearance.
--
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