aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-16 20:06:54 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-25 18:07:30 +0000
commitf2caaa0e357b2a321fe5e26b08c4c1ad50c96be2 (patch)
tree086ceeb68eef837801343430aaf8e5691ea689b4
parentc1592abdd07d7db513646c3bf75d1808cad0d638 (diff)
downloadqarepo-f2caaa0e357b2a321fe5e26b08c4c1ad50c96be2.tar
qarepo-f2caaa0e357b2a321fe5e26b08c4c1ad50c96be2.tar.gz
qarepo-f2caaa0e357b2a321fe5e26b08c4c1ad50c96be2.tar.bz2
qarepo-f2caaa0e357b2a321fe5e26b08c4c1ad50c96be2.tar.xz
qarepo-f2caaa0e357b2a321fe5e26b08c4c1ad50c96be2.zip
Avoid false positive when checking updates_testing media are enabled.
-rw-r--r--qarepo2
1 files changed, 1 insertions, 1 deletions
diff --git a/qarepo b/qarepo
index 1724626..29962c5 100644
--- a/qarepo
+++ b/qarepo
@@ -372,7 +372,7 @@ sub dialogue_dismiss {
sub check_no_testing_media {
my ($message2) = @_;
- if (system("urpmq --list-url | grep -q updates_testing") == 0) {
+ if (system("urpmq --list-media active --list-url | grep -q updates_testing") == 0) {
my $message1 = "Some updates_testing media are enabled.";
my $message3 = "Please disable these media and try again.";
show_error_dialogue(($message1, $message2, $message3));