mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 17:16:12 +01:00
- add --keep-link option to copypac command
This commit is contained in:
parent
34454ac91d
commit
49cdfa4fe3
1
NEWS
1
NEWS
@ -1,6 +1,7 @@
|
|||||||
0.133
|
0.133
|
||||||
- add --meta option also to "list", "cat" and "less" commands
|
- add --meta option also to "list", "cat" and "less" commands
|
||||||
- project checkout is skipping packages linking to project local packages by default
|
- project checkout is skipping packages linking to project local packages by default
|
||||||
|
- add --keep-link option to copypac command
|
||||||
- source validators are not called by default anymore:
|
- source validators are not called by default anymore:
|
||||||
* They can get used via source services now
|
* They can get used via source services now
|
||||||
* Allows different validations based on the code streams
|
* Allows different validations based on the code streams
|
||||||
|
@ -2390,6 +2390,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
help='do a (slower) client-side copy')
|
help='do a (slower) client-side copy')
|
||||||
@cmdln.option('-k', '--keep-maintainers', action='store_true',
|
@cmdln.option('-k', '--keep-maintainers', action='store_true',
|
||||||
help='keep original maintainers. Default is remove all and replace with the one calling the script.')
|
help='keep original maintainers. Default is remove all and replace with the one calling the script.')
|
||||||
|
@cmdln.option('-K', '--keep-link', action='store_true',
|
||||||
|
help='keep the source link in target, this also expands the source')
|
||||||
@cmdln.option('-d', '--keep-develproject', action='store_true',
|
@cmdln.option('-d', '--keep-develproject', action='store_true',
|
||||||
help='keep develproject tag in the package metadata')
|
help='keep develproject tag in the package metadata')
|
||||||
@cmdln.option('-r', '--revision', metavar='rev',
|
@cmdln.option('-r', '--revision', metavar='rev',
|
||||||
@ -2465,7 +2467,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
keep_develproject=opts.keep_develproject,
|
keep_develproject=opts.keep_develproject,
|
||||||
expand=opts.expand,
|
expand=opts.expand,
|
||||||
revision=rev,
|
revision=rev,
|
||||||
comment=comment)
|
comment=comment,
|
||||||
|
keep_link=opts.keep_link)
|
||||||
print r
|
print r
|
||||||
|
|
||||||
|
|
||||||
|
@ -4367,7 +4367,8 @@ def copy_pac(src_apiurl, src_project, src_package,
|
|||||||
keep_develproject = False,
|
keep_develproject = False,
|
||||||
expand = False,
|
expand = False,
|
||||||
revision = None,
|
revision = None,
|
||||||
comment = None):
|
comment = None,
|
||||||
|
keep_link = None):
|
||||||
"""
|
"""
|
||||||
Create a copy of a package.
|
Create a copy of a package.
|
||||||
|
|
||||||
@ -4390,8 +4391,10 @@ def copy_pac(src_apiurl, src_project, src_package,
|
|||||||
print 'Copying files...'
|
print 'Copying files...'
|
||||||
if not client_side_copy:
|
if not client_side_copy:
|
||||||
query = {'cmd': 'copy', 'oproject': src_project, 'opackage': src_package }
|
query = {'cmd': 'copy', 'oproject': src_project, 'opackage': src_package }
|
||||||
if expand:
|
if expand or keep_link:
|
||||||
query['expand'] = '1'
|
query['expand'] = '1'
|
||||||
|
if keep_link:
|
||||||
|
query['keeplink'] = '1'
|
||||||
if revision:
|
if revision:
|
||||||
query['orev'] = revision
|
query['orev'] = revision
|
||||||
if comment:
|
if comment:
|
||||||
|
Loading…
Reference in New Issue
Block a user