]> spindle.queued.net Git - xodist/commitdiff
initchroot: put custom installed packages on hold
authorAndres Salomon <dilinger@debian.org>
Tue, 28 Oct 2008 03:52:08 +0000 (23:52 -0400)
committerAndres Salomon <dilinger@debian.org>
Tue, 28 Oct 2008 03:52:08 +0000 (23:52 -0400)
Holger's suggestion was a good one; do this automatically.

Signed-off-by: Andres Salomon <dilinger@debian.org>
initchroot.sh

index e359c5d6245f24d6b7387d93e022ab652bc70041..d71f9ec59bae104b638d2e712902d41fa2937a91 100755 (executable)
@@ -146,6 +146,8 @@ for i in $k; do
        wget --continue -O cache/${pkg} ${i}
        cp cache/${pkg} ${ROOT_DIR}/${pkg} 
        (chroot ${ROOT_DIR} dpkg -i /${pkg})
+       pkgbase=$(echo $pkg | cut -d_ -f1)
+       echo $pkgbase hold | (chroot ${ROOT_DIR} dpkg --set-selections)
        rm -f ${ROOT_DIR}/${pkg}
 done