aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authorAdrien Cunin <adri2000@ubuntu.com>2007-10-22 08:28:02 +0900
committerJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-10-22 08:28:02 +0900
commita6996a19f78e81fe000bb87f9911311c5d76be9b (patch)
tree6150e866e710d8fae26a431257613bc098019f87 /pbuilder-modules
parentf6f2a0cc64cf6756e1b3d7ba880a7debe3d028a4 (diff)
downloadpbuilder-a6996a19f78e81fe000bb87f9911311c5d76be9b.tar
pbuilder-a6996a19f78e81fe000bb87f9911311c5d76be9b.tar.gz
[Pbuilder-maint] Bug#422371: Patch for specifying components
Here is a patch against latest git revision which adds the ability to specify the components either via $COMPONENTS in pbuilderrc or via the command line with --components. It is based on some of the Ubuntu changes [1]. [1] http://patches.ubuntu.com/p/pbuilder/pbuilder_0.170ubuntu1.patch
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules8
1 files changed, 6 insertions, 2 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index d62e2f4..1669038 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -54,6 +54,7 @@ pbuilder-options:
--othermirror [other mirror location in apt deb-line format, delimited with | signs]
--http-proxy [proxy]
--distribution [distribution(sid|etch|lenny|experimental)]
+ --components [components]
--buildresult [location-to-copy-build-result]
--aptcache [location of retrieved package files]
--removepackages [packages-to-remove on pbuilder create]
@@ -299,13 +300,16 @@ function installaptlines (){
echo "Distribution not specified, please specify" >&2
exit 1
fi
+ if [ -z "$COMPONENTS" ] ; then
+ COMPONENTS="main"
+ fi
if [ -n "$OTHERMIRROR" ]; then
echo "$OTHERMIRROR" | tr "|" "\n" >> "$BUILDPLACE"/etc/apt/sources.list
fi
if [ -n "$MIRRORSITE" ] ; then
cat >> "$BUILDPLACE"/etc/apt/sources.list << EOF
-deb $MIRRORSITE $DISTRIBUTION main
-#deb-src $MIRRORSITE $DISTRIBUTION main
+deb $MIRRORSITE $DISTRIBUTION $COMPONENTS
+#deb-src $MIRRORSITE $DISTRIBUTION $COMPONENTS
EOF
fi
if [ -n "$APTCONFDIR" ]; then