diff options
author | Björn Bidar | 2021-12-25 01:47:36 +0200 |
---|---|---|
committer | Björn Bidar | 2022-01-09 02:41:19 +0200 |
commit | e5f15edab3c87b91f4397dc367dc442ae5df800d (patch) | |
tree | 96a146b4f2129b31d29183fbbee9101d52633a10 /0003-Support-synchronous-copyproj.patch | |
parent | e77c9e2e518fdc637ccba818c0689c537ad41f47 (diff) | |
download | aur-e5f15edab3c87b91f4397dc367dc442ae5df800d.tar.gz |
Update 0.175.0
- New upstream release
- Add patches that implement copyprj and prjconf
Diffstat (limited to '0003-Support-synchronous-copyproj.patch')
-rw-r--r-- | 0003-Support-synchronous-copyproj.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/0003-Support-synchronous-copyproj.patch b/0003-Support-synchronous-copyproj.patch new file mode 100644 index 000000000000..eb67e032c088 --- /dev/null +++ b/0003-Support-synchronous-copyproj.patch @@ -0,0 +1,56 @@ +From da1209b4817b4273c95eceaf67fb3b50a901b3f3 Mon Sep 17 00:00:00 2001 +From: Marko Lemmetty <marko.lemmetty@jollamobile.com> +Date: Fri, 15 May 2020 14:33:17 +0300 +Subject: [PATCH 3/7] Support synchronous copyproj + +--- + osc/commandline.py | 5 +++++ + osc/core.py | 2 ++ + 2 files changed, 7 insertions(+) + +diff --git a/osc/commandline.py b/osc/commandline.py +index 2d46b1c7..a395ee19 100644 +--- a/osc/commandline.py ++++ b/osc/commandline.py +@@ -3154,6 +3154,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. + + @cmdln.option('-b', '--with-binaries', action='store_true', + help='copy the built binaries over to avoid a rebuild') ++ @cmdln.option('-n', '--now', action='store_true', ++ help='copy synchronously (may take some time to complete)') + @cmdln.option('-H', '--with-history', action='store_true', + help='replicate the history of each package.') + @cmdln.option('-o', '--make-older', action='store_true', +@@ -3171,6 +3173,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. + + The user must be able to create DESTPRJ + ++ Normally the copy is done asynchronously ++ + usage: + osc copyprj SOURCEPRJ DESTPRJ + ${cmd_option_list} +@@ -3201,6 +3205,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. + withhistory = opts.with_history, + makeolder = opts.make_older, + resign = opts.re_sign, ++ now = opts.now, + comment = comment) + print("done cp") + print(r) +diff --git a/osc/core.py b/osc/core.py +index bab85eb8..de116a70 100644 +--- a/osc/core.py ++++ b/osc/core.py +@@ -5575,6 +5575,8 @@ def copy_prj(src_apiurl, src_project, dst_project, + query['resign'] = '1' + if comment: + query['comment'] = comment ++ if now: ++ query['nodelay'] = '1' + u = makeurl(src_apiurl, ['source', dst_project], query=query) + print >>sys.stderr, "copyprj ", u + f = http_POST(u) +-- +2.34.1 + |