diff options
author | dancer <dancer> | 2001-12-25 15:24:27 +0000 |
---|---|---|
committer | dancer <dancer> | 2001-12-25 15:24:27 +0000 |
commit | 96e26b737eb856cc7e73c661539ede96df0fb496 (patch) | |
tree | 476bed42981fb89b5fe697f50ac5e68ab4fced58 /pbuilder-modules | |
parent | fb8aaff420d292ec092b52cba657c72aa5d2dbe0 (diff) | |
download | pbuilder-96e26b737eb856cc7e73c661539ede96df0fb496.tar pbuilder-96e26b737eb856cc7e73c661539ede96df0fb496.tar.gz |
fixed a typo, and reordered apt source generation
Diffstat (limited to 'pbuilder-modules')
-rw-r--r-- | pbuilder-modules | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pbuilder-modules b/pbuilder-modules index 97dbc26..1208c2e 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -99,7 +99,10 @@ function installaptlines (){ echo "Distribution not specified, please specify" >&2 exit 1 fi - if [ -n "$BUILDPLACE" ] ; then + 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 contrib non-free deb-src $MIRRORSITE $DISTRIBUTION main contrib non-free @@ -111,9 +114,6 @@ 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 } |