From 601a627ee7a8a48219ab2e5ba511219c9aac1174 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 26 Sep 2017 07:50:39 +0200 Subject: [PATCH] debdev: Package updates, support passing command --- debdev | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/debdev b/debdev index 44cc14f..294d301 100755 --- a/debdev +++ b/debdev @@ -3,7 +3,7 @@ set -e schroot="$1" if [ -z "$schroot" ]; then - echo "Usage: $0 " >&2 + echo "Usage: $0 [command]" >&2 exit 1 fi @@ -11,8 +11,9 @@ SESSID="schroot-debdev-$schroot" if ! schroot -la | grep -q "session:$SESSID"; then schroot -b -c "$schroot" -n "$SESSID" # work around for system groups - schroot -r -c session:$SESSID -u root -- addgroup --system staff - schroot -r -c session:$SESSID -u root -- apt-get install --no-install-recommends -o Dpkg::Options::="--force-confnew" -y git-buildpackage libwww-perl less vim lintian debhelper manpages-dev git dput pristine-tar bash-completion libnss-myhostname lptools python-keyrings.alt wget gnupg2 ubuntu-dev-tools python3-debian qemu-kvm qemu-utils + schroot -r -c session:$SESSID -u root -- addgroup --system staff || true + schroot -r -c session:$SESSID -u root -- apt-get install --no-install-recommends -o Dpkg::Options::="--force-confnew" -y git-buildpackage libwww-perl less vim lintian debhelper manpages-dev git dput pristine-tar bash-completion libnss-myhostname python-keyrings.alt wget gnupg2 ubuntu-dev-tools python3-debian qemu-kvm qemu-utils #sudo mount -o bind /etc/schroot/ $(schroot --location -c session:$SESSID)/etc/schroot/ fi -schroot -r -c session:$SESSID +shift +schroot -r -c session:$SESSID "$@" -- 2.39.2