1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-23 05:26:16 +01:00

fix reading of local package directory in release command (osc#218)

This commit is contained in:
Adrian Schröter 2016-08-02 14:09:18 +02:00
parent 9a3f33d5e3
commit dd1228c872

View File

@ -2900,10 +2900,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
raise oscerr.WrongArgs('Too many arguments.')
if len(args) == 0:
if is_project_dir(os.curdir):
if is_package_dir(os.curdir):
source_project = store_read_project(os.curdir)
source_package = store_read_package(os.curdir)
elif is_project_dir(os.curdir):
source_project = store_read_project(os.curdir)
elif is_package_dir(os.curdir):
source_package = store_read_package(wd)
else:
raise oscerr.WrongArgs('Too few arguments.')
if len(args) > 0: