]> git.saurik.com Git - apt.git/commitdiff
if the codename is "experimental" add NotAutomatic:yes by default
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 30 Nov 2010 17:56:36 +0000 (18:56 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 30 Nov 2010 17:56:36 +0000 (18:56 +0100)
test/integration/framework

index 5d849bda2a2457d64070a40a6a790fc8fb50c9a1..63962858abfb27c1b9c87992c033de2d68d0061c 100644 (file)
@@ -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