Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : new
commit e5a851ca51aab646a38dd395a22aea7f4b5269de Author: Richard Marko rmarko@fedoraproject.org Date: Tue Jan 21 13:01:45 2014 +0100
[frontend] 1050904 - monitor shows not submitted chroots
Signed-off-by: Richard Marko rmarko@fedoraproject.org
.../coprs/views/coprs_ns/coprs_general.py | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py index 1973ae5..c103401 100644 --- a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py +++ b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py @@ -375,12 +375,14 @@ def copr_build_monitor(username, coprname):
out = {} build = None - chroots = [] + chroots = set([chroot.name for chroot in copr.active_chroots]) latest_build = None
if builds: latest_build = builds[0] - chroots = sorted([chroot.name for chroot in latest_build.build_chroots]) + chroots.union([chroot.name for chroot in latest_build.build_chroots]) + + chroots = sorted(chroots)
for build in builds: chroot_results = {chroot.name: chroot.state @@ -391,7 +393,7 @@ def copr_build_monitor(username, coprname): if chroot_name in chroot_results: build_results.append(chroot_results[chroot_name]) else: - build_results.append('') + build_results.append('not submitted yet')
for pkg_url in build.pkgs.split(): pkg = os.path.basename(pkg_url)