]> git.proxmox.com Git - dh-cargo.git/commitdiff
Work around a stupid ftpmaster rule about files with old dates
authorXimin Luo <infinity0@debian.org>
Mon, 18 Jun 2018 07:58:34 +0000 (00:58 -0700)
committerXimin Luo <infinity0@debian.org>
Mon, 18 Jun 2018 07:58:34 +0000 (00:58 -0700)
cargo.pm
debian/changelog

index 5d30459bab63dd1aa70a8a1508a9d3a2d3989301..d58e55af0b57ea41f59a1adcacda110f7ebfff5a 100644 (file)
--- a/cargo.pm
+++ b/cargo.pm
@@ -179,6 +179,8 @@ sub install {
         doit("cp", "-at", $target, @sources);
         doit("rm", "-rf", "$target/target");
         doit("cp", $this->get_sourcepath("debian/cargo-checksum.json"), "$target/.cargo-checksum.json");
+        # work around some stupid ftpmaster rule about files with old dates.
+        doit("touch", "-d@" . $ENV{SOURCE_DATE_EPOCH}, "$target/Cargo.toml");
     }
     foreach my $pkg (@{$this->{featurepkg}}) {
         my $target = $this->get_sourcepath("debian/$pkg/usr/share/doc");
index 62f2bb21531e676ecd3bcf45db3b12f09baf4905..127a3560cb3a0cd448d023100b8da2ec62af3b38 100644 (file)
@@ -2,6 +2,7 @@ dh-cargo (5) UNRELEASED; urgency=medium
 
   * Pass `--cap-lints warn` in rustflags to avoid builds breaking when rustc
     adds new warnings.
+  * Work around a stupid ftpmaster rule about files with old dates.
 
  -- Ximin Luo <infinity0@debian.org>  Mon, 18 Jun 2018 00:51:31 -0700