aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authordancer <dancer>2001-09-07 06:27:28 +0000
committerdancer <dancer>2001-09-07 06:27:28 +0000
commited30e7a0334aacb74fbcb1e23cd1d4dc477da012 (patch)
treef4588851f4939334dc7e952990c297092d485508 /pbuilder-modules
parent754c83135cbcfade080032618e19eec65c0fb369 (diff)
downloadpbuilder-ed30e7a0334aacb74fbcb1e23cd1d4dc477da012.tar
pbuilder-ed30e7a0334aacb74fbcb1e23cd1d4dc477da012.tar.gz
adding non-us mirror and other support
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules21
1 files changed, 20 insertions, 1 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index c1da6a1..def60f8 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -29,6 +29,8 @@ Operation Options:
--basetgz [base.tgz location]
--buildplace [location of build]
--mirror [mirror location]
+ --nonusmirror [non-US mirror location]
+ --othermirror [other mirror location in apt deb-line format, delimited with | signs]
--http-proxy [proxy]
--distribution [distribution(potato/woody/sid)]
--buildresult [location-to-copy-build-result]
@@ -66,10 +68,27 @@ function abortingfunction () {
function installaptlines (){
echo Installing apt-lines
- cat > "$BUILDPLACE"/etc/apt/sources.list << EOF
+ rm "$BUILDPLACE"/etc/apt/sources.list
+ test -n "$DISTRIBUTION" && (
+ echo "Distribution not specified, please specify" >&2
+ exit 1
+ )
+ if [ -n "$MIRRORSITE" ] then
+ cat >> "$BUILDPLACE"/etc/apt/sources.list << EOF
deb $MIRRORSITE $DISTRIBUTION main contrib non-free
deb-src $MIRRORSITE $DISTRIBUTION main contrib non-free
EOF
+ fi
+ if [ -n "$NONUSMIRRORSITE" ] then
+ cat >> "$BUILDPLACE"/etc/apt/sources.list << EOF
+deb $NONUSMIRRORSITE $DISTRIBUTION/non-US main contrib non-free
+deb-src $NONUSMIRRORSITE $DISTRIBUTION/non-US main contrib non-free
+EOF
+ fi
+ if [ -n "$OTHERMIRROR" ] then
+ echo "$OTHERMIRROR" | tr "|" "\n" >> "$BUILDPLACE"/etc/apt/sources.list
+ fi
+
}
function extractbuildplace () {