Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Thaodan:tools
osc
0004-Add-p-to-copyprj-to-enable-copying-of-prjc...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-Add-p-to-copyprj-to-enable-copying-of-prjconf.patch of Package osc
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Marko Lemmetty <marko.lemmetty@jollamobile.com> Date: Fri, 15 May 2020 14:47:19 +0300 Subject: [PATCH] Add -p to copyprj to enable copying of prjconf --- osc/commandline.py | 3 +++ osc/core.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 3e44189b69155f645b063d93362f652df849b826..6e4b55ea04b037ae2fb0fb063a812849a0e523cc 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2120,6 +2120,8 @@ class Osc(cmdln.Cmdln): help='replicate the history of each package.') @cmdln.option('-o', '--make-older', action='store_true', help='No idea') + @cmdln.option('-p', '--prjconf', action='store_true', + help='copy the prjconf also') @cmdln.option('-r', '--re-sign', action='store_true', help='re-sign the binaries') @cmdln.option('-m', '--message', metavar='TEXT', @@ -2162,6 +2164,7 @@ class Osc(cmdln.Cmdln): r = copy_prj(src_apiurl, src_project, dst_project, withbinaries = opts.with_binaries, withhistory = opts.with_history, + withprjconf = opts.prjconf, makeolder = opts.make_older, resign = opts.re_sign, now = opts.now, diff --git a/osc/core.py b/osc/core.py index a20886bfe0c3705bed233368ac06f07392f33f5a..ab35e460da43def0bdc39b3c1c0499c4666df1c5 100644 --- a/osc/core.py +++ b/osc/core.py @@ -6316,8 +6316,10 @@ def copy_pac( def copy_prj(src_apiurl, src_project, dst_project, withbinaries = False, withhistory = False, + withprjconf = False, makeolder = False, resign = False, + now = False, comment = None): """ Create a copy of a project. @@ -6331,6 +6333,8 @@ def copy_prj(src_apiurl, src_project, dst_project, query['withbinaries'] = '1' if withhistory: query['withhistory'] = '1' + if withprjconf: + query['withprjconf'] = '1' if makeolder: query['makeolder'] = '1' if resign: @@ -6339,6 +6343,7 @@ def copy_prj(src_apiurl, src_project, dst_project, query['comment'] = comment if now: query['nodelay'] = '1' + u = makeurl(src_apiurl, ['source', dst_project], query=query) print("copyprj ", u, file=sys.stderr) f = http_POST(u)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor