summarylogtreecommitdiffstats
path: root/0004-Add-p-to-copyprj-to-enable-copying-of-prjconf.patch
diff options
context:
space:
mode:
Diffstat (limited to '0004-Add-p-to-copyprj-to-enable-copying-of-prjconf.patch')
-rw-r--r--0004-Add-p-to-copyprj-to-enable-copying-of-prjconf.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/0004-Add-p-to-copyprj-to-enable-copying-of-prjconf.patch b/0004-Add-p-to-copyprj-to-enable-copying-of-prjconf.patch
new file mode 100644
index 000000000000..104f9103df49
--- /dev/null
+++ b/0004-Add-p-to-copyprj-to-enable-copying-of-prjconf.patch
@@ -0,0 +1,63 @@
+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 46bbc28087338961ff09cabc964ae0024a73001c..c7ad5927974123bae6e31bd23057ffd6f6d1ecdd 100644
+--- a/osc/commandline.py
++++ b/osc/commandline.py
+@@ -2114,6 +2114,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',
+@@ -2156,6 +2158,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 d3d4ca9cf3b3cfc6ad966fa3692cfa019d8d567c..d79c1bac7e35daa73a700344c23410be16adfe9e 100644
+--- a/osc/core.py
++++ b/osc/core.py
+@@ -6282,8 +6282,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.
+@@ -6297,6 +6299,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:
+@@ -6305,6 +6309,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)