[copr] master: pass --scm-option spec=foo to mock-scm (3cc9313)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 3cc9313f78a9d2b3bfd469a0a884611e1fdfd868
Author: Miroslav Such�� <msuchy(a)redhat.com>
Date: Mon Jan 25 14:09:29 2016 +0100
pass --scm-option spec=foo to mock-scm
otherwise it will look for the spec only in git root
>---------------------------------------------------------------
dist-git/dist_git/dist_git_importer.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dist-git/dist_git/dist_git_importer.py b/dist-git/dist_git/dist_git_importer.py
index 9628948..2734b36 100755
--- a/dist-git/dist_git/dist_git_importer.py
+++ b/dist-git/dist_git/dist_git_importer.py
@@ -282,6 +282,7 @@ class MockScmProvider(SrpmBuilderProvider):
"--scm-option", "package={}".format(package_name),
"--scm-option", "branch={}".format(self.task.mock_scm_branch),
"--scm-option", "write_tar=True",
+ "--scm-option", "spec={0}".format(self.task.mock_spec),
"--scm-option", self.scm_option_get(),
"--buildsrpm", "--resultdir={}".format(self.tmp_dest)]
8 years, 3 months
[copr] master: [frontend] fix bug 1299163 - Clicking on a build in list of builds for a package gives 500 if the owner is a group (a4d8458)
by clime@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit a4d8458e83f1eb7046fe8998285b22a14c108fb0
Author: clime <clime(a)redhat.com>
Date: Mon Jan 25 14:07:15 2016 +0100
[frontend] fix bug 1299163 - Clicking on a build in list of builds for a package gives 500 if the owner is a group
>---------------------------------------------------------------
frontend/coprs_frontend/coprs/models.py | 8 ++++++++
.../coprs/views/coprs_ns/coprs_builds.py | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/models.py b/frontend/coprs_frontend/coprs/models.py
index 42db722..281bb8a 100644
--- a/frontend/coprs_frontend/coprs/models.py
+++ b/frontend/coprs_frontend/coprs/models.py
@@ -452,6 +452,14 @@ class Build(db.Model, helpers.Serializer):
return self.user.name
@property
+ def group_name(self):
+ return self.copr.group_name
+
+ @property
+ def copr_name(self):
+ return self.copr.name
+
+ @property
def fail_type_text(self):
return helpers.FailTypeEnum(self.fail_type)
diff --git a/frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py b/frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
index 694ba7a..ae4bbe0 100644
--- a/frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
+++ b/frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
@@ -39,7 +39,7 @@ def copr_build_redirect(build_id):
copr = build.copr
if copr.is_a_group_project:
return flask.redirect(url_for(
- "coprs_ns.copr_build",
+ "coprs_ns.group_copr_build",
group_name=build.copr.group.name,
coprname=build.copr.name,
build_id=build_id))
8 years, 3 months
[copr] master: [prunerepo] bugfix for --cleancopr when a log for the respective dir does not exist (e.g. copr repos with old dir naming) (0f2ecfe)
by clime@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 0f2ecfe3d3916a0e407300ea2e51deaa576b3821
Author: clime <clime(a)redhat.com>
Date: Mon Jan 25 11:35:00 2016 +0100
[prunerepo] bugfix for --cleancopr when a log for the respective dir does not exist (e.g. copr repos with old dir naming)
>---------------------------------------------------------------
prunerepo/prunerepo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/prunerepo/prunerepo b/prunerepo/prunerepo
index 671e2f7..86f6bd6 100755
--- a/prunerepo/prunerepo
+++ b/prunerepo/prunerepo
@@ -152,7 +152,7 @@ def clean_copr():
buildlog_path = os.path.abspath(os.path.join(args.path, buildlog_name))
if args.verbose:
log_info('Removing: '+buildlog_path)
- os.remove(os.path.join(args.path, buildlog_path))
+ rm_file(os.path.join(args.path, buildlog_path))
if __name__ == '__main__':
8 years, 3 months
[copr] master: Automatic commit of package [prunerepo] release [1.1-1]. (c62a2fe)
by clime@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit c62a2fe7f8662e4ddc874a229e673ad8efc7d97b
Author: clime <clime(a)redhat.com>
Date: Mon Jan 25 10:06:18 2016 +0100
Automatic commit of package [prunerepo] release [1.1-1].
>---------------------------------------------------------------
.tito/packages/prunerepo | 2 +-
prunerepo/prunerepo.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.tito/packages/prunerepo b/.tito/packages/prunerepo
index 3c95d35..120c45b 100644
--- a/.tito/packages/prunerepo
+++ b/.tito/packages/prunerepo
@@ -1 +1 @@
-1.0-1 prunerepo/
+1.1-1 prunerepo/
diff --git a/prunerepo/prunerepo.spec b/prunerepo/prunerepo.spec
index 829ab50..4d08cac 100644
--- a/prunerepo/prunerepo.spec
+++ b/prunerepo/prunerepo.spec
@@ -1,6 +1,6 @@
Summary: Remove old packages from rpm-md repository
Name: prunerepo
-Version: 1.0
+Version: 1.1
Release: 1%{?dist}
# Source is created by:
@@ -51,5 +51,8 @@ install -p -m 644 man/prunerepo.1 %{buildroot}/%{_mandir}/man1/
%{_mandir}/man1/prunerepo.1*
%changelog
+* Mon Jan 25 2016 clime <clime(a)redhat.com> 1.1-1
+- test suite finished (clime(a)redhat.com)
+- --quiet, --cleancopr and --days options implemented (clime(a)redhat.com)
* Tue Jan 19 2016 clime <clime(a)redhat.com> 1.0-1
- Initial package version
8 years, 3 months
[copr] master: [prunerepo] man pages update (additional info to --cleancopr option) (42a7774)
by clime@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 42a777431acde90a99fdc6704517e0eb5c0879b0
Author: clime <clime(a)redhat.com>
Date: Mon Jan 25 09:54:19 2016 +0100
[prunerepo] man pages update (additional info to --cleancopr option)
>---------------------------------------------------------------
prunerepo/man/prunerepo.1.asciidoc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/prunerepo/man/prunerepo.1.asciidoc b/prunerepo/man/prunerepo.1.asciidoc
index 8ef69fb..336c960 100644
--- a/prunerepo/man/prunerepo.1.asciidoc
+++ b/prunerepo/man/prunerepo.1.asciidoc
@@ -39,7 +39,7 @@ OPTIONS
only remove packages older than DAYS (by their build date), does remove srpm only if associated rpm is removed
--cleancopr::
- additionaly remove whole copr build dirs and logs if the associated package gets deleted
+ additionaly remove whole copr build dirs (contain 'build.info' file) and logs if the associated package gets deleted
--nocreaterepo::
repository is not automatically recreated after deletion
8 years, 3 months
[copr] master: [docker-backend] README with basic usage added (d56dc0d)
by clime@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit d56dc0dc6ff6c75d9ba71a94ffb6e8345e2d5e13
Author: clime <clime(a)redhat.com>
Date: Mon Jan 25 00:57:06 2016 +0100
[docker-backend] README with basic usage added
>---------------------------------------------------------------
docker/backend/README | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/docker/backend/README b/docker/backend/README
new file mode 100644
index 0000000..143c5de
--- /dev/null
+++ b/docker/backend/README
@@ -0,0 +1,9 @@
+Opens ports 2222 (sshd), 5002 (backend results), 6380 (redis) directly on the host.
+
+Basic usage:
+make - builds Dockerfile into an image
+make run - runs the image as daemon
+make sh - gives the container's shell
+make del - removes the container
+
+To have full copr stack (including frontend, distgit, and backend), you should first run "vagrant up" in the main project directory.
8 years, 3 months
[copr] master: [docker-backend] initial commit (081dd31)
by clime@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 081dd318550ea4de80a3bbb306355a1d01294855
Author: clime <clime(a)redhat.com>
Date: Mon Jan 25 00:45:04 2016 +0100
[docker-backend] initial commit
>---------------------------------------------------------------
Diff suppressed because of size. To see it, use:
git diff --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol ^081dd318550ea4de80a3bbb306355a1d01294855~1 081dd318550ea4de80a3bbb306355a1d01294855
8 years, 3 months
[copr] master: Vagrantfile: rsync__exclude for frontend/data folder (due to permissions problem on when data is owned by some other user than the current one) (b97a165)
by clime@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit b97a1658c47ee0a756dc6b28a10cdddcc139c7af
Author: clime <clime(a)redhat.com>
Date: Fri Jan 22 14:02:12 2016 +0100
Vagrantfile: rsync__exclude for frontend/data folder (due to permissions problem on when data is owned by some other user than the current one)
>---------------------------------------------------------------
Vagrantfile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Vagrantfile b/Vagrantfile
index 89c43fa..edab976 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -9,7 +9,7 @@ Vagrant.configure(2) do |config|
frontend.vm.network "forwarded_port", guest: 80, host: 5000
- frontend.vm.synced_folder ".", "/vagrant", type: "rsync"
+ frontend.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: "frontend/data/"
frontend.vm.network "private_network", ip: "192.168.242.51"
@@ -166,7 +166,7 @@ Vagrant.configure(2) do |config|
distgit.vm.network "forwarded_port", guest: 80, host: 5001
- distgit.vm.synced_folder ".", "/vagrant", type: "rsync"
+ distgit.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: "frontend/data/"
distgit.vm.network "private_network", ip: "192.168.242.52"
8 years, 4 months