1
0
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:
Dr. Peter Poeml
2006-07-20 14:23:10 +00:00
parent 5be1e292fc
commit 12b0c4bb99
3 changed files with 11 additions and 3 deletions

View File

@@ -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'