blino's website

Free software developer and more

  • fix wrapper (patch below)
  • make --use-old-chroot command work:
sudo ./iurt-tmp-wrapper --shell --use-old-chroot /export/home/mandrake/chroot_tmp/blino/chroot_cooker.0.20070822181005/

--- /usr/local/bin/iurt 2007-04-20 09:30:49.000000000 +0200
+++ iurt-tmp-wrapper    2007-08-08 18:11:38.000000000 +0200
@@ -16,7 +16,7 @@
     echo
     echo "   $0 usage:"
     echo
-    echo "             $0 [--shell] [--stop a|b|l|d|i|c|p] [--clean] [--media media1 media2] package.rpm"
+    echo "             $0 [--shell] [--stop a|b|l|d|i|c|p] [--clean] [--use-old-chroot <path>] [--media media1 media2] package.rpm"
     echo
     echo "                 e.g.: $0 --shell --media main/release main/updates /SRPMS/main/release/mkcd-4.2.5-1mdv2007.1.src.rpm"
     echo
@@ -43,17 +43,19 @@
        echo
        exit
     fi
-else  
-    if [[ $1 == '--shell' ]]; then
+elif [[ $1 == '--shell' ]]; then
        shift
        stop="--shell"
-    else 
-       if [[ $1 == '--clean' ]]; then
+elif [[ $1 == '--clean' ]]; then
            shift
            stop="--clean $SUDO_USER"
-       fi
-    fi
 fi
+if [[ $1 == '--use-old-chroot' && -n "$2" ]]; then
+       stop="$1 $2"
+       shift
+       shift
+fi
+

 if [[ $1 == '--media' ]]; then
     shift


Comments are closed for this story.

Trackbacks are closed for this story.

blosxom Optimised for standards.
Olivier Blin (2005)