From e17b9e028d800ffd0203086a266d6baf3876b2c3 Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Tue, 13 Oct 2020 13:45:38 +0200 Subject: oldfiles: use .signature instead of .mdsum to find the required sources --- oldfiles | 12 +++++++----- 1 file 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 () { - m/^[a-f0-9]{32}\s\s(\S+)\n/; - $wanted{$srcdir}{$1} = 1; + open SIGNATURES, "$path/$name/.signature" or next; + while () { + m/^SHA256\s\((.+)\)\s.+\n/; + if ($1 && !($1 =~ "Pkgfile") && !($1 =~ ".footprint")) { + $wanted{$srcdir}{$1} = 1; + } } - close MD5SUMS; + close SIGNATURES; } } -- cgit v1.2.3