]> git.proxmox.com Git - dh-cargo.git/commitdiff
Touch all the old files to address an auto reject from ftpmasters
authorSylvestre Ledru <sylvestre@debian.org>
Sun, 22 Aug 2021 19:47:50 +0000 (21:47 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 22 Aug 2021 19:58:30 +0000 (21:58 +0200)
cargo.pm
debian/changelog

index 75a7a6f67b34536889f305f77dc334129b19c28e..dbccea4867d191b43f27c205d49308a940c40566 100644 (file)
--- a/cargo.pm
+++ b/cargo.pm
@@ -174,6 +174,9 @@ sub install {
         doit("cp", $this->get_sourcepath("debian/cargo-checksum.json"), "$target/.cargo-checksum.json");
         # prevent an ftpmaster auto-reject regarding files with old dates.
         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 {} +");
     }
     foreach my $pkg (@{$this->{featurepkg}}) {
         my $target = $this->get_sourcepath("debian/$pkg/usr/share/doc");
index c173e0dccb45df594917f3a536fc9db631e8900c..5b308e791864310bae96133bc2a3b4c5bec81e61 100644 (file)
@@ -1,10 +1,14 @@
 dh-cargo (25) UNRELEASED; urgency=medium
 
+  [ Debian Janitor ]
   * Remove constraints unnecessary since stretch:
     + Build-Depends: Drop versioned constraint on debhelper.
     + dh-cargo: Drop versioned constraint on debhelper in Depends.
 
- -- Debian Janitor <janitor@jelmer.uk>  Tue, 15 Jun 2021 22:38:34 -0000
+  [ Sylvestre Ledru ]
+  * Touch all the old files to address an auto reject from ftpmasters
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Sun, 22 Aug 2021 21:46:33 +0200
 
 dh-cargo (24) unstable; urgency=medium