diff options
author | Juergen Daubert <jue@jue.li> | 2020-10-13 13:45:38 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2020-10-13 13:45:38 +0200 |
commit | e17b9e028d800ffd0203086a266d6baf3876b2c3 (patch) | |
tree | c5a62a62905763b01eefb1acd66e7809cad21200 | |
parent | 0071e47783679209b6ac00c29783be53d70955a6 (diff) | |
download | prt-utils-e17b9e028d800ffd0203086a266d6baf3876b2c3.tar.gz prt-utils-e17b9e028d800ffd0203086a266d6baf3876b2c3.tar.xz |
oldfiles: use .signature instead of .mdsum to find the required sources
-rwxr-xr-x | oldfiles | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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; } } |