Fix backports handling on sid
authorChristoph Berg <christoph.berg@credativ.de>
Fri, 22 Jan 2016 13:34:04 +0000 (14:34 +0100)
committerChristoph Berg <christoph.berg@credativ.de>
Fri, 22 Jan 2016 13:34:04 +0000 (14:34 +0100)
jenkins/sbuild-package

index f834c49e2b1271617d71489b9263b35b47f8dea9..70d476d020558fa7b6b5cfff410d4c52b5abc969 100755 (executable)
@@ -76,8 +76,8 @@ if [ "${BACKPORTS:-}" ]; then
       deb="http://debian-approx:9999/debian" ;;
   esac
   case $distribution in
-    squeeze) BACKPORTS="deb $deb-backports/ $distribution-backports main" ;;
-    wheezy|jessie) BACKPORTS="deb $deb $distribution-backports main" ;;
+    squeeze) BPOREPO="deb $deb-backports/ $distribution-backports main" ;;
+    wheezy|jessie) BPOREPO="deb $deb $distribution-backports main" ;;
   esac
 fi
 
@@ -118,7 +118,7 @@ NEWPID="newpid -iuN newpid$distribution$BITS"
   ${NEWPID:-} \
   sbuild --nolog --batch \
     -d $distribution-pgdg --arch $architecture ${ARCH_ALL:-} ${RESOLVE_ALTERNATIVES:-} \
-    ${BACKPORTS:+--extra-repository="$BACKPORTS"} \
+    ${BPOREPO:+--extra-repository="$BPOREPO"} \
     --finished-build-commands="${FINISHED_BUILD_COMMAND:-}" \
     ${ADD_DEPENDS:-} $DSC
 ) 9> $LOCKDIR/$distribution-$architecture.lock