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:
lxnay
2008-12-05 21:33:49 +00:00
parent a5790ca9df
commit 038c0761bd
5 changed files with 15 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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:

View File

@@ -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

View File

@@ -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