[Piuparts-devel] [Git][debian/piuparts][develop] fix upgrading to squeeze-backports

Holger Levsen gitlab at salsa.debian.org
Wed Oct 17 10:29:15 BST 2018


Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
b970f16d by Andreas Beckmann at 2018-10-17T09:28:31Z
fix upgrading to squeeze-backports

Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- custom-scripts/scripts/pre_distupgrade_allow_unauthenticated


Changes:

=====================================
custom-scripts/scripts/pre_distupgrade_allow_unauthenticated
=====================================
@@ -14,11 +14,6 @@ if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "wheezy" ]; then
 	rm -fv /etc/apt/apt.conf.d/unauthenticated-squeeze
 fi
 
-if [ -e /etc/apt/apt.conf.d/unauthenticated-squeeze ]; then
-	echo "FAIL: /etc/apt/apt.conf.d/unauthenticated-squeeze exists"
-	exit 1
-fi
-
 if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "squeeze" ]; then
 	echo "Creating /etc/apt/apt.conf.d/unauthenticated-squeeze ..."
 	# apt/lenny does not like comments ...
@@ -26,4 +21,9 @@ if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "squeeze" ]; then
 APT::Get::AllowUnauthenticated "true";
 Acquire::Check-Valid-Until "false";
 EOF
+elif [ "$PIUPARTS_DISTRIBUTION_NEXT" = "squeeze-backports" ]; then
+	:
+elif [ -e /etc/apt/apt.conf.d/unauthenticated-squeeze ]; then
+	echo "FAIL: /etc/apt/apt.conf.d/unauthenticated-squeeze exists"
+	exit 1
 fi



View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/b970f16daad06a8758175f6b38e58eaf7f2c295d

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/b970f16daad06a8758175f6b38e58eaf7f2c295d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20181017/5d69259e/attachment.html>


More information about the Piuparts-devel mailing list