Fix chroot name, document dependency
[invirt/third/common.git] / invirtificator.sh
index 04f0106..7d070dd 100644 (file)
@@ -1,10 +1,14 @@
 # Interface: define variables name, ivversionappend, and function
 # hack_package ().
 
+# Depends: dpkg-awk
+
+# Usage: invirtify-$foo {source|binary|upload}
+
 set -e
 
 dist=hardy
-chroot=$dist-amd64
+chroot=$dist-amd64-sbuild
 
 : ${section=invirt-system}
 : ${ivname=$name}
@@ -108,7 +112,7 @@ cmd_binary () {
     if [ "$a" = "-A" ]; then
         sbuild -d "$dist" --arch-all "${ivname}_$ivfilever.dsc"
     else
-        sbuild -d "$dist" --arch amd64 "${ivname}_$ivfilever.dsc"
+        sbuild -d "$dist" --arch amd64 --arch-all "${ivname}_$ivfilever.dsc"
         sbuild -d "$dist" --arch i386 "${ivname}_$ivfilever.dsc"
     fi
 }