diff options
author | Francois Pons <fpons@mandriva.com> | 2003-08-13 15:40:25 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-08-13 15:40:25 +0000 |
commit | 0ba4acf7f5757fd27bf10ef36cbb64e316863b3a (patch) | |
tree | 0ccc87ed7a9b04855237c5ec192381981c93c4ca /perl-install/install_any.pm | |
parent | 44017db71aad5465020eca7d59add8a5735cd519 (diff) | |
download | drakx-0ba4acf7f5757fd27bf10ef36cbb64e316863b3a.tar drakx-0ba4acf7f5757fd27bf10ef36cbb64e316863b3a.tar.gz drakx-0ba4acf7f5757fd27bf10ef36cbb64e316863b3a.tar.bz2 drakx-0ba4acf7f5757fd27bf10ef36cbb64e316863b3a.tar.xz drakx-0ba4acf7f5757fd27bf10ef36cbb64e316863b3a.zip |
added tiny support for arch dependant directory.
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 6 |
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) = @_; |