mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 17:16:12 +01:00
Correction of grammatical errors
"exists" is a Python keyword, and wrong outside the 3rd person singular in English.
This commit is contained in:
parent
5d0656e167
commit
4342d9a6e1
@ -694,10 +694,10 @@ def main(apiurl, opts, argv):
|
|||||||
if pkg_meta_e:
|
if pkg_meta_e:
|
||||||
print('ERROR: Either wrong repo/arch as parameter or a parse error of .spec/.dsc/.kiwi file due to syntax error', file=sys.stderr)
|
print('ERROR: Either wrong repo/arch as parameter or a parse error of .spec/.dsc/.kiwi file due to syntax error', file=sys.stderr)
|
||||||
else:
|
else:
|
||||||
print('The package \'%s\' does not exists - please ' \
|
print('The package \'%s\' does not exist - please ' \
|
||||||
'rerun with \'--local-package\'' % pac, file=sys.stderr)
|
'rerun with \'--local-package\'' % pac, file=sys.stderr)
|
||||||
else:
|
else:
|
||||||
print('The project \'%s\' does not exists - please ' \
|
print('The project \'%s\' does not exist - please ' \
|
||||||
'rerun with \'--alternative-project <alternative_project>\'' % prj, file=sys.stderr)
|
'rerun with \'--alternative-project <alternative_project>\'' % prj, file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
|
@ -8149,7 +8149,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if not os.path.isfile(source):
|
if not os.path.isfile(source):
|
||||||
raise oscerr.WrongArgs("Source file '%s' does not exists or is no file" % source)
|
raise oscerr.WrongArgs("Source file '%s' does not exist or is not a file" % source)
|
||||||
if not opts.force and os.path.isfile(dest):
|
if not opts.force and os.path.isfile(dest):
|
||||||
raise oscerr.WrongArgs("Dest file '%s' already exists" % dest)
|
raise oscerr.WrongArgs("Dest file '%s' already exists" % dest)
|
||||||
if os.path.isdir(dest):
|
if os.path.isdir(dest):
|
||||||
|
@ -2989,14 +2989,14 @@ def slash_split(l):
|
|||||||
def expand_proj_pack(args, idx=0, howmany=0):
|
def expand_proj_pack(args, idx=0, howmany=0):
|
||||||
"""looks for occurance of '.' at the position idx.
|
"""looks for occurance of '.' at the position idx.
|
||||||
If howmany is 2, both proj and pack are expanded together
|
If howmany is 2, both proj and pack are expanded together
|
||||||
using the current directory, or none of them, if not possible.
|
using the current directory, or none of them if not possible.
|
||||||
If howmany is 0, proj is expanded if possible, then, if there
|
If howmany is 0, proj is expanded if possible, then, if there
|
||||||
is no idx+1 element in args (or args[idx+1] == '.'), pack is also
|
is no idx+1 element in args (or args[idx+1] == '.'), pack is also
|
||||||
expanded, if possible.
|
expanded, if possible.
|
||||||
If howmany is 1, only proj is expanded if possible.
|
If howmany is 1, only proj is expanded if possible.
|
||||||
|
|
||||||
If args[idx] does not exists, an implicit '.' is assumed.
|
If args[idx] does not exist, an implicit '.' is assumed.
|
||||||
if not enough elements up to idx exist, an error is raised.
|
If not enough elements up to idx exist, an error is raised.
|
||||||
|
|
||||||
See also parseargs(args), slash_split(args), findpacs(args)
|
See also parseargs(args), slash_split(args), findpacs(args)
|
||||||
All these need unification, somehow.
|
All these need unification, somehow.
|
||||||
|
Loading…
Reference in New Issue
Block a user