Entropy/Equo:
- fails on wrong extended parameters (like --as instead of --ask) git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2719 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -42,6 +42,9 @@ def query(options):
|
||||
for opt in options:
|
||||
if (opt == "--deep"):
|
||||
equoRequestDeep = True
|
||||
elif opt.startswith("--"):
|
||||
print_error(red(" %s." % (_("Wrong parameters"),) ))
|
||||
return -10
|
||||
else:
|
||||
if not opt.startswith("-"):
|
||||
myopts.append(opt)
|
||||
|
||||
@@ -42,6 +42,9 @@ def repositories(options):
|
||||
for opt in myopts:
|
||||
if (opt == "--force"):
|
||||
equoRequestForceUpdate = True
|
||||
elif opt.startswith("--"):
|
||||
print_error(red(" %s." % (_("Wrong parameters"),) ))
|
||||
return -10
|
||||
elif opt in etpRepositoriesOrder:
|
||||
repo_names.append(opt)
|
||||
|
||||
|
||||
@@ -43,6 +43,9 @@ def smart(options):
|
||||
smartRequestEmpty = True
|
||||
elif (opt == "--savedir"):
|
||||
savedir = True
|
||||
elif opt.startswith("--"):
|
||||
print_error(red(" %s." % (_("Wrong parameters"),) ))
|
||||
return
|
||||
else:
|
||||
if savedir:
|
||||
try:
|
||||
|
||||
@@ -35,6 +35,9 @@ def ugc(options):
|
||||
for opt in options[1:]:
|
||||
if opt == "--force":
|
||||
do_force = True
|
||||
elif opt.startswith("--"):
|
||||
print_error(red(" %s." % (_("Wrong parameters"),) ))
|
||||
return -10
|
||||
else:
|
||||
myopts.append(opt)
|
||||
options = myopts
|
||||
|
||||
@@ -76,6 +76,9 @@ def package(options):
|
||||
equoRequestChecksum = False
|
||||
elif (opt == "--skipfirst"):
|
||||
equoRequestSkipfirst = True
|
||||
elif (opt.startswith("--")):
|
||||
print_error(red(" %s." % (_("Wrong parameters"),) ))
|
||||
return -10
|
||||
else:
|
||||
if opt.startswith("--"):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user