chiark / gitweb /
dgit-repos-policy-debian: Fix new repo checks
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 11 May 2015 08:21:12 +0000 (09:21 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 10:54:11 +0000 (11:54 +0100)
infra/dgit-repos-policy-debian

index 5efccde..7d12b6e 100755 (executable)
@@ -216,9 +216,9 @@ sub action_check_package () {
     my $age = time -  $mtime;
     printdebug "check_package age=$age\n";
 
-    return 1 if $age < $new_upload_propagation_slop;
+    return 0 if $age < $new_upload_propagation_slop;
 
-    return if new_has_vsn_in_our_history();
+    return if new_has_vsn_in_our_history();
 
     if (good_suite_has_vsn_in_our_history) {
        chmod $publicmode, "." or die $!;
@@ -396,6 +396,7 @@ END
            printdebug sprintf "chmod %#o (was %#o) %s\n",
                $newmode, $oldmode, $freshrepo;
            chmod $newmode, $freshrepo or die $!;
+           utime undef, undef, $freshrepo or die $!;
        }
     }