summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xmdkapplet2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6c565ac0..6933717f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- mdkapplet
+ o check we have both restricted/release & restricted/updates
- mdkapplet-restricted-helper
o add both newly created restricted/release & restricted/updates media
diff --git a/mdkapplet b/mdkapplet
index 34cf975b..5d05e48c 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:
- grep { /Restricted Updates/ } @names;
+ @restricted_media > 2 && (grep { /Restricted Updates/ } @names) && (grep { /Restricted/ && !/Updates/ } @names);
}
sub prepare_add_restricted() {