summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-12-03 15:19:44 +0000
committerThierry Vignaud <tv@mandriva.org>2008-12-03 15:19:44 +0000
commitb662b030f4dad9681ed84f267b3e8792cbe97999 (patch)
tree5e594ef5ada1b65a4c1d4f29b95ac6c7a704c7be /mdkapplet
parent2c34f05b496d35d9a1de3f8ba0658c6511edf348 (diff)
downloadmgaonline-b662b030f4dad9681ed84f267b3e8792cbe97999.tar
mgaonline-b662b030f4dad9681ed84f267b3e8792cbe97999.tar.gz
mgaonline-b662b030f4dad9681ed84f267b3e8792cbe97999.tar.bz2
mgaonline-b662b030f4dad9681ed84f267b3e8792cbe97999.tar.xz
mgaonline-b662b030f4dad9681ed84f267b3e8792cbe97999.zip
(add_restricted_medium) add 32 bit repositories on x86_64 too
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 71b4091a..46823700 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -699,7 +699,8 @@ sub is_restricted_media_configured {
my @names = map { $_->{name} } @restricted_media;
# we need both 'Restricted' & 'Restricted Updates' media
# those who did online update trough mdkapplet do not have restricted medium, hence the test for 2 medium:
- @restricted_media >= 2 && (grep { /Restricted Updates/ } @names) && (grep { /Restricted/ && !/Updates/ } @names);
+ @restricted_media >= (urpm::cfg::get_arch() =~ /64/ ? 4 : 2)
+ && (grep { /Restricted Updates/ } @names) && (grep { /Restricted/ && !/Updates/ } @names);
}
sub really_prepare_add_restricted() {