summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-12-03 15:01:25 +0000
committerThierry Vignaud <tv@mandriva.org>2008-12-03 15:01:25 +0000
commiteb45b368aaf8810807f860d1cb5f9db5e1e879d1 (patch)
tree3d6289f44cdb68cb31b3ed7693bfbbf30cf920d4
parent8f469139bf30718628229f2866462b1be8714a3c (diff)
downloadmgaonline-eb45b368aaf8810807f860d1cb5f9db5e1e879d1.tar
mgaonline-eb45b368aaf8810807f860d1cb5f9db5e1e879d1.tar.gz
mgaonline-eb45b368aaf8810807f860d1cb5f9db5e1e879d1.tar.bz2
mgaonline-eb45b368aaf8810807f860d1cb5f9db5e1e879d1.tar.xz
mgaonline-eb45b368aaf8810807f860d1cb5f9db5e1e879d1.zip
(is_restricted_media_configured) fix off by one error
-rwxr-xr-xmdkapplet2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index bdae414a..71b4091a 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -699,7 +699,7 @@ 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 >= 2 && (grep { /Restricted Updates/ } @names) && (grep { /Restricted/ && !/Updates/ } @names);
}
sub really_prepare_add_restricted() {