summaryrefslogtreecommitdiff
path: root/scripts/Test
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-11-14 01:17:32 +0100
committerGuillem Jover <guillem@debian.org>2016-11-16 03:57:07 +0100
commitd5005e4576bcf9b341e83cfb8647d5f96438642f (patch)
treea20061179ac1f8fff9d8dbb7bfc7662f84932525 /scripts/Test
parent8ff4522cf0f08659dee954ac2c6256c607b045df (diff)
downloaddpkg-d5005e4576bcf9b341e83cfb8647d5f96438642f.tar.gz
dpkg-genbuildinfo: Use deterministic .buildinfo filenames
Using undeterministic filenames based on the buildinfo-id produces ugly looking filenames, which get left behind when rebuilding the same source multiple times as they vary by date. There's really no great point in using unique filenames as they will end up with different contents depending on the builder.
Diffstat (limited to 'scripts/Test')
-rw-r--r--scripts/Test/Dpkg.pm18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/Test/Dpkg.pm b/scripts/Test/Dpkg.pm
index ff60df177..e0395dec6 100644
--- a/scripts/Test/Dpkg.pm
+++ b/scripts/Test/Dpkg.pm
@@ -111,24 +111,6 @@ sub test_neutralize_checksums
open my $fh, '<', $filename or die;
while (<$fh>) {
s/^ ([0-9a-f]{32,}) [1-9][0-9]* /q{ } . $1 =~ tr{0-9a-f}{0}r . q{ 0 }/e;
- s{^
- (
- \s
- # Digest
- 0{32,}
- \s
- # Size
- 0
- # Optional Section and Priority
- (?:\s[\w]*\s[\w]*)?
- \s
- # Filename (package and version)
- [^_]*_[^_]*
- )
- # Filename (architecture and extension)
- _[^.]*\.(buildinfo)
- $
- }{$1_20160101T123000z-00000000.$2}x;
print { $fhnew } $_;
}
close $fh or die;