[reagent] properly handle "repo package-{un,}mask" tool arguments

This commit is contained in:
Fabio Erculiani
2010-07-16 14:41:58 +02:00
parent dd14a39281
commit eb17f0b6e4
+2 -2
View File
@@ -319,7 +319,7 @@ def repositories(options):
elif cmd == "package-mask":
if len(myopts) < 3:
if len(myopts) < 2:
print_error(darkred(" !!! ")+red(_("Invalid syntax.")))
return 1
repo = myopts[0]
@@ -347,7 +347,7 @@ def repositories(options):
elif cmd == "package-unmask":
if len(myopts) < 3:
if len(myopts) < 2:
print_error(darkred(" !!! ")+red(_("Invalid syntax.")))
return 1
repo = myopts[0]