[copr] bkabrda-workspace: Make sure build.pkgs is not None before splitting (422bcaf)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Wed Nov 28 15:43:21 UTC 2012


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : bkabrda-workspace

>---------------------------------------------------------------

commit 422bcaf09feeccb80a179ba8506549a2ad993996
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Nov 28 16:43:12 2012 +0100

    Make sure build.pkgs is not None before splitting


>---------------------------------------------------------------

 .../coprs/templates/coprs/_builds_table.html       |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/coprs_frontend/coprs/templates/coprs/_builds_table.html b/coprs_frontend/coprs/templates/coprs/_builds_table.html
index 47beb41..9366bdb 100644
--- a/coprs_frontend/coprs/templates/coprs/_builds_table.html
+++ b/coprs_frontend/coprs/templates/coprs/_builds_table.html
@@ -26,9 +26,11 @@
         <td colspan=7>
           <h4>Package URLs:</h4>
           <ul class=packages-list>
-            {% for pkg in build.pkgs.split() %}
-              <li>{{ pkg }}</li>
-            {% endfor %}
+            {% if build.pkgs is not none %}
+              {% for pkg in build.pkgs.split() %}
+                <li>{{ pkg }}</li>
+              {% endfor %}
+            {% endif %}
           </ul>
         </td>
       </tr>



More information about the copr-devel mailing list