mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-10 13:05:46 +01:00
fix osc log without arguments
This commit is contained in:
parent
513d984c76
commit
2ba65c531a
@ -4150,14 +4150,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
wd = os.curdir
|
wd = os.curdir
|
||||||
if is_project_dir(dir) or is_package_dir(dir):
|
if is_project_dir(wd) or is_package_dir(wd):
|
||||||
project = store_read_project(wd)
|
project = store_read_project(wd)
|
||||||
if is_project_dir(dir):
|
if is_project_dir(wd):
|
||||||
package = "_project"
|
package = "_project"
|
||||||
else:
|
else:
|
||||||
package = store_read_package(wd)
|
package = store_read_package(wd)
|
||||||
else:
|
else:
|
||||||
raise oscerr.WrongArgs('Local directory is not a checked out resource and no remote project/package given.')
|
raise oscerr.NoWorkingCopy("Error: \"%s\" is not an osc working copy." % os.path.abspath(wd))
|
||||||
elif len(args) < 1:
|
elif len(args) < 1:
|
||||||
raise oscerr.WrongArgs('Too few arguments (required none or two)')
|
raise oscerr.WrongArgs('Too few arguments (required none or two)')
|
||||||
elif len(args) > 2:
|
elif len(args) > 2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user