SOURCES: rpmlist.py - handle metapackages by Pyldek

witekfl witekfl at pld-linux.org
Fri Oct 26 19:03:53 CEST 2007


Author: witekfl                      Date: Fri Oct 26 17:03:53 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- handle metapackages by Pyldek

---- Files affected:
SOURCES:
   rpmlist.py (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/rpmlist.py
diff -u SOURCES/rpmlist.py:1.1 SOURCES/rpmlist.py:1.2
--- SOURCES/rpmlist.py:1.1	Thu Oct 25 18:08:13 2007
+++ SOURCES/rpmlist.py	Fri Oct 26 19:03:48 2007
@@ -241,8 +241,9 @@
 			for sug in pkg.suggests:
 				html += str(sug) + '\n'
 			html += '</pre><hr/>Files: <pre>'
-			for (filename, filesize, filemode) in pkg.files:
-				html += filename + '\n'
+			if pkg.files:
+				for (filename, filesize, filemode) in pkg.files:
+					html += filename + '\n'
 #			html += '</pre><hr/>Changelog:<br/><pre>\n'
 #			try:
 #				html += h[rpm.RPMTAG_CHANGELOGTEXT][0]
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpmlist.py?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list