[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Reducing chroot count to 4 -- using aliases



Christoph Egger <christoph@debian.org> writes:
> --- 99builddsourceslist~	2013-08-15 10:13:20.000000000 +0000
> +++ 99builddsourceslist	2013-08-15 10:12:56.000000000 +0000
> @@ -27,7 +27,7 @@
>  . "$SETUP_DATA_DIR/common-config"
>  
>  if [ "$CHROOT_SESSION_PURGE" = "true" ]; then
> -    case $CHROOT_NAME in
> +    case $CHROOT_ALIAS in
>          *-*-*-*-sbuild*)
>          SUITE_BASE=$(echo $CHROOT_NAME | cut -f1 -d-)
>          SUITE_VARIANT=$(echo $CHROOT_NAME | cut -f2,3 -d-)


Correct diff is of course the below. so much for testing with a slightly
different system and extracting a "small" changes

--- 99builddsourceslist~	2013-08-15 10:13:20.000000000 +0000
+++ 99builddsourceslist	2013-08-15 10:50:46.000000000 +0000
@@ -27,17 +27,17 @@
 . "$SETUP_DATA_DIR/common-config"
 
 if [ "$CHROOT_SESSION_PURGE" = "true" ]; then
-    case $CHROOT_NAME in
+    case $CHROOT_ALIAS in
         *-*-*-*-sbuild*)
-        SUITE_BASE=$(echo $CHROOT_NAME | cut -f1 -d-)
-        SUITE_VARIANT=$(echo $CHROOT_NAME | cut -f2,3 -d-)
+        SUITE_BASE=$(echo $CHROOT_ALIAS | cut -f1 -d-)
+        SUITE_VARIANT=$(echo $CHROOT_ALIAS | cut -f2,3 -d-)
         ;;
         *-*-*-sbuild*)
-        SUITE_BASE=$(echo $CHROOT_NAME | cut -f1 -d-)
-        SUITE_VARIANT=$(echo $CHROOT_NAME | cut -f2 -d-)
+        SUITE_BASE=$(echo $CHROOT_ALIAS | cut -f1 -d-)
+        SUITE_VARIANT=$(echo $CHROOT_ALIAS | cut -f2 -d-)
         ;;
         *-*-sbuild*)
-        SUITE_BASE=$(echo $CHROOT_NAME | cut -f1 -d-)
+        SUITE_BASE=$(echo $CHROOT_ALIAS | cut -f1 -d-)
         if [ ${SUITE_BASE} != "sid" ]; then
             SUITE_VARIANT="proposed-updates"
         fi


Reply to: