Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit ee873194d1a7de4ed27b0eb54f46c781455872c0
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Feb 26 23:34:56 2014 +0100
Automatic commit of package [copr] release [1.27-1].
>---------------------------------------------------------------
copr.spec | 31 ++++++++++++++++++++++++++++++-
rel-eng/packages/copr | 2 +-
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/copr.spec b/copr.spec
index 720c54e..f0d7ba5 100644
--- a/copr.spec
+++ b/copr.spec
@@ -9,7 +9,7 @@
%global modulename copr
Name: copr
-Version: 1.26
+Version: 1.27
Release: 1%{?dist}
Summary: Cool Other Package Repo
@@ -411,6 +411,35 @@ fi
%endif # with_server
%changelog
+* Wed Feb 26 2014 Miroslav Suchý <msuchy(a)redhat.com> 1.27-1
+- [frontend] update to jquery 1.11.0
+- [fronted] link username to fas
+- [cli] allow to build into projects of other users
+- [backend] do not create repo in destdir
+- [backend] ensure that only one createrepo is running at the same time
+- [cli] allow to get data from sent build
+- temporary workaround for BZ 1065251
+- Chroot details API now uses GET instead of POST
+- when deleting/canceling task, go to same page
+- add copr modification to web api
+- 1063311 - admin should be able to delete task
+- [frontend] Stray end tag h4.
+- [frontend] another s/coprs/projects/ rename
+- [frontend] provide info about last successfull build
+- [spec] rhel5 needs group definition even in subpackage
+- [frontend] move 'you agree' text to dd
+- [frontend] add margin to chroots-set
+- [frontend] add margin to field label
+- [frontend] put disclaimer to paragraph tags
+- [frontend] use black font color
+- [frontend] use default filter instead of *_not_filled
+- [frontend] use markdown template filter
+- [frontend] use isdigit instead of is_int
+- [frontend] move Serializer to helpers
+- [frontend] fix coding style and py3 compatibility
+- [cli] fix coding style and py3 compatibility
+- [backend] fix coding style and py3 compatibility
+
* Tue Jan 28 2014 Miroslav Suchý <miroslav(a)suchy.cz> 1.26-1
- lower testing date
- move localized_time into filters
diff --git a/rel-eng/packages/copr b/rel-eng/packages/copr
index cd95b1f..7d36413 100644
--- a/rel-eng/packages/copr
+++ b/rel-eng/packages/copr
@@ -1 +1 @@
-1.26-1 ./
+1.27-1 ./
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit ef2424329be4fbfd9a9438531d50ad3310ad88a5
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Feb 25 10:31:19 2014 +0100
[cli] allow to build into projects of other users
>---------------------------------------------------------------
copr_cli/main.py | 2 +-
copr_cli/subcommands.py | 18 +++++++++++++-----
man/copr-cli.1.asciidoc | 4 +++-
3 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/copr_cli/main.py b/copr_cli/main.py
index 9644471..96775f5 100644
--- a/copr_cli/main.py
+++ b/copr_cli/main.py
@@ -94,7 +94,7 @@ def setup_parser():
help="Build packages to a "
"specified copr")
parser_build.add_argument("copr",
- help="The copr repo to build the package in"
+ help="The copr repo to build the package in. Can just name of project or even in format username/project."
)
parser_build.add_argument("pkgs", nargs="+",
help="URL of packages to build")
diff --git a/copr_cli/subcommands.py b/copr_cli/subcommands.py
index 53a4fab..91fa6ab 100644
--- a/copr_cli/subcommands.py
+++ b/copr_cli/subcommands.py
@@ -5,14 +5,14 @@ Function actually doing the work of calling the API and handling the
output.
"""
+import ConfigParser
+import datetime
+import json
import os
+import re
+import requests
import sys
import time
-import json
-import datetime
-import ConfigParser
-
-import requests
import copr_exceptions
@@ -190,6 +190,14 @@ def build(copr, pkgs, memory, timeout, wait=True, result=None):
And "id" and "status" otherwise.
"""
user = get_user()
+ username = user["username"]
+
+ # if you specify copr as username/foo, retrieve and cut username
+ m = re.match(r"(\w+)/(\w+)", copr)
+ if m:
+ username = m.group(1)
+ copr = m.group(2)
+
copr_api_url = get_api_url()
URL = "{0}/coprs/{1}/{2}/new_build/".format(
copr_api_url,
diff --git a/man/copr-cli.1.asciidoc b/man/copr-cli.1.asciidoc
index b29e081..295efba 100644
--- a/man/copr-cli.1.asciidoc
+++ b/man/copr-cli.1.asciidoc
@@ -85,7 +85,9 @@ Override timeout for this build
Don't wait for build completion
copr::
-The copr repo to build the package in
+The copr repo to build the package in. This can be simple name of some of your projects. Or
+you can specify it as username/project. This way you can build into project of somebody else
+if you are allowed to.
pkg_url::
URL of package to build. Package must be placed on some public web of ftp, from where it can