mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-17 06:02:52 +02:00
- fix creation of packages, which did no longer work since the latest changes
in error handling (since editmeta needs to see the 404 to know that a package is to be created) - insert a newline after 'missing argument' messages
This commit is contained in:
@@ -64,6 +64,7 @@ usage: osc meta Apache # show meta of project 'Apache'
|
||||
|
||||
if not args:
|
||||
print 'missing argument'
|
||||
print
|
||||
print meta.func_doc
|
||||
sys.exit(1)
|
||||
|
||||
@@ -88,6 +89,7 @@ usage: osc editmeta FooPrj # edit meta of project 'FooPrj'
|
||||
|
||||
if not args:
|
||||
print 'missing argument'
|
||||
print
|
||||
print meta.func_doc
|
||||
sys.exit(1)
|
||||
|
||||
@@ -556,6 +558,7 @@ usage: osc buildinfo <platform> <arch>
|
||||
|
||||
if args is None or len(args) < 2:
|
||||
print 'missing argument'
|
||||
print
|
||||
print buildinfo.func_doc
|
||||
print 'Valid arguments for this package are:'
|
||||
print
|
||||
@@ -580,6 +583,7 @@ usage: osc buildconfig <platform> <arch>
|
||||
|
||||
if args is None or len(args) < 2:
|
||||
print 'missing argument'
|
||||
print
|
||||
print buildconfig.func_doc
|
||||
print 'Valid arguments for this package are:'
|
||||
print
|
||||
@@ -632,6 +636,7 @@ and set su-wrapper to 'sudo' in .oscrc.
|
||||
|
||||
elif args is None or len(args) < 3:
|
||||
print 'missing argument'
|
||||
print
|
||||
print build.func_doc
|
||||
print 'Valid arguments are:'
|
||||
print 'you have to choose a repo to build on'
|
||||
|
Reference in New Issue
Block a user