aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules17
1 files changed, 14 insertions, 3 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index e40ec3f..36243e1 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -27,10 +27,10 @@ pbuilder [operation] [pbuilder-options]
pdebuild [pbuilder-options]
command lines:
-pbuilder create [--basetgz base.tgz-path] [--distribution potato|woody|sarge|sid]
+pbuilder create [--basetgz base.tgz-path] [--distribution potato|woody|sarge|etch|sid|experimental]
Creates a base.tgz
-pbuilder update [--basetgz base.tgz-path] [--distribution potato|woody|sarge|sid]
+pbuilder update [--basetgz base.tgz-path] [--distribution potato|woody|sarge|etch|sid|experimental]
Updates a base.tgz
pbuilder build [--basetgz base.tgz-path] pbuilder_2.2.0-1.dsc
@@ -53,7 +53,7 @@ pbuilder-options:
--nonusmirror [non-US mirror location]
--othermirror [other mirror location in apt deb-line format, delimited with | signs]
--http-proxy [proxy]
- --distribution [distribution(potato/woody/sarge/sid)]
+ --distribution [distribution(potato|woody|sarge|sid|etch|experimental)]
--buildresult [location-to-copy-build-result]
--aptcache [location of retrieved package files]
--removepackages [packages-to-remove on pbuilder create]
@@ -242,6 +242,17 @@ EOF
echo " -> Copy " "$APTCONFDIR"/* " to chroot"
cp -a "$APTCONFDIR/"* "$BUILDPLACE"/etc/apt
fi
+
+ if [ -n "$EXPERIMENTAL" ]; then
+ echo " -> Installing apt-lines and pinning for experimental"
+ if [ -n "$MIRRORSITE" ] ; then
+ echo "deb $MIRRORSITE ../project/experimental main" >> "$BUILDPLACE"/etc/apt/sources.list
+ echo "#deb-src $MIRRORSITE ../project/experimental main" >> "$BUILDPLACE"/etc/apt/sources.list
+ fi
+ cat >> "$BUILDPLACE"/etc/apt/apt.conf << EOF
+APT::Default-Release "experimental";
+EOF
+ fi
}
function copy_local_configuration () {