summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_any.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index e9bb89d04..e5e7eba07 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -53,7 +53,11 @@ sub changeMedium($$) {
}
sub relGetFile($) {
local $_ = $_[0];
- m|\.rpm$| ? "$::o->{packages}{mediums}{$asked_medium}{rpmsdir}/$_" : $_;
+ if (my ($arch) = m|\.([^\.]*)\.rpm$|) {
+ $_ = "$::o->{packages}{mediums}{$asked_medium}{rpmsdir}/$_";
+ s/%{ARCH}/$arch/g;
+ }
+ $_;
}
sub askChangeMedium($$) {
my ($method, $medium) = @_;