Commit 4cff2ee5 authored by Mike Hibler's avatar Mike Hibler

Make sure mtime is correct on any generated .sha1 file.

parent 41f7c387
...@@ -407,6 +407,7 @@ sub createfull($$$) ...@@ -407,6 +407,7 @@ sub createfull($$$)
if (open(FD, ">$shafile")) { if (open(FD, ">$shafile")) {
print FD "$hash\n"; print FD "$hash\n";
close(FD); close(FD);
system("touch -r $file $shafile");
} }
} else { } else {
print("$iname: WARNING: could not generate or parse SHA1 hash of '$file'\n"); print("$iname: WARNING: could not generate or parse SHA1 hash of '$file'\n");
...@@ -593,6 +594,7 @@ sub createdelta($$$) ...@@ -593,6 +594,7 @@ sub createdelta($$$)
if (open(FD, ">$shafile")) { if (open(FD, ">$shafile")) {
print FD "$hash\n"; print FD "$hash\n";
close(FD); close(FD);
system("touch -r $dfile $shafile");
} }
} else { } else {
print("$iname: WARNING: could not generate or parse SHA1 hash of '$dfile'\n"); print("$iname: WARNING: could not generate or parse SHA1 hash of '$dfile'\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment