Use -kfreebsd suite name on jessie/kfreebsd
authorPeter Palfrader <peter@palfrader.org>
Wed, 6 May 2015 06:08:26 +0000 (08:08 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 6 May 2015 06:08:35 +0000 (08:08 +0200)
modules/schroot/files/schroot-setup.d/99porterbox-extra-sources

index 8c5e919..c29eb15 100755 (executable)
@@ -22,6 +22,16 @@ else
     fatal "Cannot find config script"
 fi
 
+suite_alias="$SUITE_BASE"
+case "$SUITE_ARCH" in
+    kfreebsd-*)
+        case "$SUITE_BASE" in
+            jessie)
+                suite_alias="$SUITE_BASE-kfreebsd"
+            ;;
+        esac
+        ;;
+esac
 
 if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then
   SRCL="${CHROOT_PATH}/etc/apt/sources.list.d/auto.list"
@@ -36,23 +46,23 @@ if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then
     sid|stretch)
       ;;
     *)
-      echo "deb     http://security.debian.org/ ${SUITE_BASE}/updates main" >> "$SRCL"
-      echo "deb-src http://security.debian.org/ ${SUITE_BASE}/updates main" >> "$SRCL"
+      echo "deb     http://security.debian.org/ ${suite_alias}/updates main" >> "$SRCL"
+      echo "deb-src http://security.debian.org/ ${suite_alias}/updates main" >> "$SRCL"
       ;;
   esac
-  echo "deb     $mirror ${SUITE_BASE} main" >> "$SRCL"
-  echo "deb-src $mirror ${SUITE_BASE} main" >> "$SRCL"
+  echo "deb     $mirror ${suite_alias} main" >> "$SRCL"
+  echo "deb-src $mirror ${suite_alias} main" >> "$SRCL"
 
   case "${SUITE_VARIANT:-}" in
     backports)
       case "${SUITE_BASE:-}" in
         squeeze)
-          echo "deb     http://backports.debian.org/debian-backports/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
-          echo "deb-src http://backports.debian.org/debian-backports/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
+          echo "deb     http://backports.debian.org/debian-backports/ ${suite_alias}-${SUITE_VARIANT} main" >> "$SRCL"
+          echo "deb-src http://backports.debian.org/debian-backports/ ${suite_alias}-${SUITE_VARIANT} main" >> "$SRCL"
           ;;
         *)
-          echo "deb     $mirror ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
-          echo "deb-src $mirror ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
+          echo "deb     $mirror ${suite_alias}-${SUITE_VARIANT} main" >> "$SRCL"
+          echo "deb-src $mirror ${suite_alias}-${SUITE_VARIANT} main" >> "$SRCL"
           ;;
       esac
       ;;