1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- improve error message when calling patchinfo in standard package.

This commit is contained in:
Adrian Schröter 2012-03-23 09:37:08 +01:00
parent 874e269887
commit 82880e9572

View File

@ -456,6 +456,8 @@ class Osc(cmdln.Cmdln):
project = store_read_project(localdir)
patchinfo = store_read_package(localdir)
apiurl = self.get_api_url()
if not os.path.exists('_patchinfo'):
sys.exit('Current checked out package has no _patchinfo. Either call it from project level or specify patch name.')
else:
sys.exit('This command must be called in a checked out project or patchinfo package.')
else: