summaryrefslogtreecommitdiff
path: root/oldfiles
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2020-10-13 13:45:38 +0200
committerJuergen Daubert <jue@jue.li>2020-10-13 13:45:38 +0200
commite17b9e028d800ffd0203086a266d6baf3876b2c3 (patch)
treec5a62a62905763b01eefb1acd66e7809cad21200 /oldfiles
parent0071e47783679209b6ac00c29783be53d70955a6 (diff)
downloadprt-utils-e17b9e028d800ffd0203086a266d6baf3876b2c3.tar.gz
prt-utils-e17b9e028d800ffd0203086a266d6baf3876b2c3.tar.xz
oldfiles: use .signature instead of .mdsum to find the required sources
Diffstat (limited to 'oldfiles')
-rwxr-xr-xoldfiles12
1 files changed, 7 insertions, 5 deletions
diff --git a/oldfiles b/oldfiles
index 15f726d..c581ba0 100755
--- a/oldfiles
+++ b/oldfiles
@@ -70,12 +70,14 @@ foreach (split('\n', `prt-get printf "%p:%n:%v:%r\n"`)) {
$wanted{$pkgdir}{"$name\#$version-$release.pkg.tar.$compress"} = 1;
}
if ( $options{"-s"} ) {
- open MD5SUMS, "$path/$name/.md5sum" or next;
- while (<MD5SUMS>) {
- m/^[a-f0-9]{32}\s\s(\S+)\n/;
- $wanted{$srcdir}{$1} = 1;
+ open SIGNATURES, "$path/$name/.signature" or next;
+ while (<SIGNATURES>) {
+ m/^SHA256\s\((.+)\)\s.+\n/;
+ if ($1 && !($1 =~ "Pkgfile") && !($1 =~ ".footprint")) {
+ $wanted{$srcdir}{$1} = 1;
+ }
}
- close MD5SUMS;
+ close SIGNATURES;
}
}

Generated by cgit