Skip to content

Commit

Permalink
Pbuild: fix sources parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Mar 2, 2021
1 parent 3cf1bca commit 292ae4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PBuild/RemoteAssets.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sub fedpkg_parse {
open ($fd, '<', "$p->{'dir'}/sources") || die("$p->{'dir'}/sources: $!\n");
while (<$fd>) {
chomp;
if (/^(\S+) \(.*\) = ([0-9a-fA-F]{32,})$/s) {
if (/^(\S+) \((.*)\) = ([0-9a-fA-F]{32,})$/s) {
$p->{'asset_files'}->{$2} = { 'file' => $2, 'digest' => lc("$1:$3") };
} elsif (/^([0-9a-fA-F]{32}) (.*)$/) {
$p->{'asset_files'}->{$2} = { 'file' => $2, 'digest' => lc("md5:$1") };
Expand Down

0 comments on commit 292ae4d

Please sign in to comment.