[Piuparts-commits] [piuparts] 01/06: autodetect dpkg capability force-unsafe-io

Holger Levsen holger at moszumanska.debian.org
Mon Feb 10 11:14:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 86a6aa32352422bd6b8271b70c131ab6d074ddd2
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun Nov 24 02:15:25 2013 +0100

    autodetect dpkg capability force-unsafe-io
    
    turn the option on if dpkg initially supports it
    or after it becomes available during distupgrades
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 custom-scripts/scripts/post_distupgrade_force-unsafe-io |  1 +
 custom-scripts/scripts/post_setup_force-unsafe-io       | 11 +++++++++++
 debian/changelog                                        |  2 ++
 3 files changed, 14 insertions(+)

diff --git a/custom-scripts/scripts/post_distupgrade_force-unsafe-io b/custom-scripts/scripts/post_distupgrade_force-unsafe-io
new file mode 120000
index 0000000..b049614
--- /dev/null
+++ b/custom-scripts/scripts/post_distupgrade_force-unsafe-io
@@ -0,0 +1 @@
+post_setup_force-unsafe-io
\ No newline at end of file
diff --git a/custom-scripts/scripts/post_setup_force-unsafe-io b/custom-scripts/scripts/post_setup_force-unsafe-io
new file mode 100755
index 0000000..b2ac53e
--- /dev/null
+++ b/custom-scripts/scripts/post_setup_force-unsafe-io
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+if [ ! -f /etc/dpkg/dpkg.cfg.d/piuparts-force-unsafe-io ]
+then
+	if dpkg --force-help | grep -q unsafe-io
+	then
+		echo "Enabling dpkg --force-unsafe-io."
+		echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/piuparts-force-unsafe-io
+	fi
+fi
diff --git a/debian/changelog b/debian/changelog
index e59c42d..c824f15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -50,6 +50,8 @@ piuparts (0.57) UNRELEASED; urgency=low
     - Improve master.log verbosity.
   * piuparts-report.py:
     - Mark essential-required as obsolete and hide it.
+  * scripts/post_{setup,distupgrade}_force-unsafe-io: New custom script to
+    automatically enable dpkg --force-unsafe-io once that is supported.
   * Add more piuparts exceptions.
   * Handle lib32nss-mdns like ia32-libs[-gtk].
 

-- 
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