Commit 0c88ea0e authored by Dietmar Maurer's avatar Dietmar Maurer

read_aplinfo_from_fh: use architecture to generate default file names

parent bfc517c0
...@@ -107,7 +107,8 @@ sub read_aplinfo_from_fh { ...@@ -107,7 +107,8 @@ sub read_aplinfo_from_fh {
$template = $res->{location}; $template = $res->{location};
$template =~ s|.*/([^/]+.tar.gz)|$1|; $template =~ s|.*/([^/]+.tar.gz)|$1|;
} else { } else {
$template = "$res->{os}-$res->{package}_$res->{version}_i386.tar.gz"; my $arch = $res->{architecture} || 'i386';
$template = "$res->{os}-$res->{package}_$res->{version}_$arch.tar.gz";
$template =~ s/$res->{os}-$res->{os}-/$res->{os}-/; $template =~ s/$res->{os}-$res->{os}-/$res->{os}-/;
} }
$res->{source} = $source; $res->{source} = $source;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment