aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-apt-config
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-30 11:08:03 +0100
committerLoïc Minier <lool@dooz.org>2010-01-30 11:08:03 +0100
commit5a595e32ed35eb59c6fe929b4769059bc9e59093 (patch)
tree4f34081389b2d6bfcb8927938e4b854f67f18241 /pbuilder-apt-config
parentac445efb09f86a807a7dd965c88d2784e5642375 (diff)
downloadpbuilder-5a595e32ed35eb59c6fe929b4769059bc9e59093.tar
pbuilder-5a595e32ed35eb59c6fe929b4769059bc9e59093.tar.gz
Add support for --archive
Diffstat (limited to 'pbuilder-apt-config')
-rwxr-xr-xpbuilder-apt-config9
1 files changed, 7 insertions, 2 deletions
diff --git a/pbuilder-apt-config b/pbuilder-apt-config
index af28c75..affed8a 100755
--- a/pbuilder-apt-config
+++ b/pbuilder-apt-config
@@ -14,7 +14,7 @@ log() {
}
usage() {
- log "$self [<options>] [--mirror=<mirror>] [--suite=<suite>] [--pockets=<pocket1>,<pocket2>] <action>"
+ log "$self [<options>] [--archive=<archive>] [--mirror=<mirror>] [--suite=<suite>] [--pockets=<pocket1>,<pocket2>] <action>"
log "$self [--profile=<profile>] <action>"
log " where <action> is one of apt-sources, debootstrap-mirror, or debootstrap-suite"
log
@@ -152,13 +152,14 @@ set_debootstrap_suite() {
esac
}
-getopt_output="`getopt -o "" -l help,with-sources::,arch:,components:,mirror:,suite:,pockets:,profile: -n "$self" -s sh -- "$@"`"
+getopt_output="`getopt -o "" -l help,with-sources::,arch:,components:,archive:,mirror:,suite:,pockets:,profile: -n "$self" -s sh -- "$@"`"
eval set -- "$getopt_output"
with_sources="disabled"
arch="`dpkg --print-architecture`"
components="main"
+archive=""
mirror=""
suite=""
pockets=""
@@ -193,6 +194,10 @@ while :; do
components="$2"
shift 2
;;
+ --archive)
+ archive="$2"
+ shift 2
+ ;;
--mirror)
mirror="$2"
shift 2