From: Cyril Brulebois Date: Sun, 8 Jan 2012 23:17:51 +0000 (+0100) Subject: apt-in-chroot: Allow apt-get update too. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1d7196d01d0cff827b3158c9dcaf5939f7f8d04a;p=dsa-metapackages.git apt-in-chroot: Allow apt-get update too. This helps fighting against 404's, without having to run a full dist-upgrade of all chroots (through upgrade-porter-chroots). Signed-off-by: Cyril Brulebois Signed-off-by: Stephen Gran --- diff --git a/apt-in-chroot b/apt-in-chroot index 45c1197..9082965 100755 --- a/apt-in-chroot +++ b/apt-in-chroot @@ -24,7 +24,7 @@ VALID_CHROOTS_PARSE="$(/usr/bin/dchroot -l 2>&1 | /usr/bin/awk -F": " '{print $2 usage() { bn="`basename "$0"`" - echo "Usage: $bn " + echo "Usage: $bn []" echo "" echo " allowed chroots are ($VALID_CHROOTS_PARSE)" echo "" @@ -33,6 +33,7 @@ usage() { echo " + remove" echo " + purge" echo " + build-dep" + echo " + update" } @@ -48,7 +49,7 @@ PACKAGES=$* case "$APTCMD" in -install|remove|purge|build-dep) +install|remove|purge|build-dep|update) # those are the allowed apt sub-commands ;; *)