1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 17:16:12 +01:00

- new patchinfo is now default on server, old format not anymore supported on purpose.

So removing the switch is also on purpose to make people aware of it.
This commit is contained in:
Adrian Schröter 2011-11-11 10:51:24 +01:00
parent 2ce8484dc8
commit 0f1ae28bf0

View File

@ -427,8 +427,6 @@ class Osc(cmdln.Cmdln):
@cmdln.option('-f', '--force', action='store_true', @cmdln.option('-f', '--force', action='store_true',
help='force generation of new patchinfo file') help='force generation of new patchinfo file')
@cmdln.option('-n', '--new', action='store_true',
help='Use new, OBS 2.3 style patchinfo format. Will become default on release of OBS 2.3.')
@cmdln.option('--force-update', action='store_true', @cmdln.option('--force-update', action='store_true',
help='drops away collected packages from an already built patch and let it collect again') help='drops away collected packages from an already built patch and let it collect again')
def do_patchinfo(self, subcmd, opts, *args): def do_patchinfo(self, subcmd, opts, *args):
@ -457,8 +455,6 @@ class Osc(cmdln.Cmdln):
if opts.force or not patchinfo: if opts.force or not patchinfo:
print "Creating initial patchinfo..." print "Creating initial patchinfo..."
query='cmd=createpatchinfo' query='cmd=createpatchinfo'
if opts.new:
query+='&new_format=1'
if args and args[0]: if args and args[0]:
query += "&name=" + args[0] query += "&name=" + args[0]
url = makeurl(apiurl, ['source', project], query=query) url = makeurl(apiurl, ['source', project], query=query)