summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2023-03-06 09:21:27 +0000
committerJulian Andres Klode <jak@debian.org>2023-03-06 09:21:27 +0000
commita4aa4c61498fd542ff65b340157db3a4a0a87f60 (patch)
tree397fe4f1153fb9493bf97e95d00bea9ac4c06b7e /test/integration/framework
parent6ba6b29e37a7e7b867a88f1d74e7dcfd7f83c30e (diff)
parent937221fde2a5ca989a0b80728cd3ba3639f9f20e (diff)
Merge branch 'fix/unconditional-trusted' into 'main'
Do not store trusted=yes Release file unconditionally See merge request apt-team/apt!289
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/framework b/test/integration/framework
index d50b63518..264c228d0 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -1204,16 +1204,16 @@ generatereleasefiles() {
msgninfo "\tGenerate Release files for flat… "
aptftparchiverelease ./aptarchive > aptarchive/Release
fi
+ if [ -n "$VALIDUNTIL" ]; then
+ sed -i "/^Date: / a\
+Valid-Until: $(date -u -d "$VALIDUNTIL" -R)" $(find ./aptarchive -name 'Release')
+ fi
if [ -n "$DATE" -a "$DATE" != "now" ]; then
for release in $(find ./aptarchive -name 'Release'); do
sed -i "s/^Date: .*$/Date: $(date -u -d "$DATE" -R)/" "$release"
touch -d "$DATE" "$release"
done
fi
- if [ -n "$VALIDUNTIL" ]; then
- sed -i "/^Date: / a\
-Valid-Until: $(date -u -d "$VALIDUNTIL" -R)" $(find ./aptarchive -name 'Release')
- fi
msgdone "info"
}