]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
detect Releasefile IMS hits even if the server doesn't
[apt.git] / test / integration / framework
index 2a53e83656bbc8c21ecd798d0aed530cf7dcef8d..8c8936eaddf3a9ed01ede6f201f2e075de8a891f 100644 (file)
@@ -1005,6 +1005,15 @@ signreleasefiles() {
        msgdone "info"
 }
 
+redatereleasefiles() {
+       local DATE="$(date -d "$1" '+%a, %d %b %Y %H:%M:%S %Z')"
+       for release in $(find aptarchive/ -name 'Release'); do
+               sed -i "s/^Date: .*$/Date: ${DATE}/" $release
+               touch -d "$DATE" $release
+       done
+       signreleasefiles "${2:-Joe Sixpack}"
+}
+
 webserverconfig() {
        local WEBSERVER="${3:-http://localhost:8080}"
        local NOCHECK=false