summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-11-30 18:56:36 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-11-30 18:56:36 +0100
commit35faae110d5b0265fa2f8ea7f4e092b736161397 (patch)
tree78f0bebf012c414d42f58dbda93c099ab63afbf7 /test
parent9b78cda6873104b80ffdbc8b5d3965575ce0a31d (diff)
if the codename is "experimental" add NotAutomatic:yes by default
Diffstat (limited to 'test')
-rw-r--r--test/integration/framework7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/integration/framework b/test/integration/framework
index 5d849bda2..63962858a 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -367,7 +367,12 @@ generatereleasefiles() {
msgninfo "\tGenerate Release files… "
if [ -e aptarchive/dists ]; then
for dir in $(find ./aptarchive/dists -mindepth 1 -maxdepth 1 -type d); do
- aptftparchive -qq release $dir -o APT::FTPArchive::Release::Codename="$(echo "$dir" | cut -d'/' -f 4)" | sed -e '/0 Release$/ d' > $dir/Release # remove the self reference
+ local CODENAME="$(echo "$dir" | cut -d'/' -f 4)"
+ aptftparchive -qq release $dir -o APT::FTPArchive::Release::Codename="${CODENAME}" | sed -e '/0 Release$/ d' > $dir/Release # remove the self reference
+ if [ "$CODENAME" = "experimental" ]; then
+ sed -i '/^Date: / a\
+NotAutomatic: yes' $dir/Release
+ fi
done
else
aptftparchive -qq release ./aptarchive | sed -e '/0 Release$/ d' > aptarchive/Release # remove the self reference