]> git.proxmox.com Git - dh-cargo.git/commitdiff
make it more consistent with the other uses of touch
authorSylvestre Ledru <sylvestre@debian.org>
Sun, 22 Aug 2021 21:12:25 +0000 (23:12 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 22 Aug 2021 21:12:25 +0000 (23:12 +0200)
cargo.pm

index 44b4c1b8592981a15f54a1a2750e63aee5383d9c..9b4978c8e303afa4b63ad2d1c4c1a52181539d38 100644 (file)
--- a/cargo.pm
+++ b/cargo.pm
@@ -176,7 +176,7 @@ sub install {
         doit("touch", "-d@" . $ENV{SOURCE_DATE_EPOCH}, "$target/Cargo.toml");
         # Many files are coming from crates.io with incorrect timestamp
         # See https://github.com/rust-lang/crates.io/issues/3859
-        complex_doit("find $target ! -newermt 'jan 01, 2000' -exec touch {} +");
+        complex_doit("find $target ! -newermt 'jan 01, 2000' -exec touch -d@" . $ENV{SOURCE_DATE_EPOCH} . " {} +");
     }
     foreach my $pkg (@{$this->{featurepkg}}) {
         my $target = tmpdir($pkg) . "/usr/share/doc";