[Python-checkins] python/dist/src/Doc/tools mkpkglist,1.5,1.6

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Sun Jan 23 23:14:19 CET 2005


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22566/tools

Modified Files:
	mkpkglist 
Log Message:
include each row in the package table, even if there are no packages for
that row; the row is commented out in that case
(this makes it easier to modify the table after generation)


Index: mkpkglist
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkpkglist,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- mkpkglist	11 May 2004 14:37:55 -0000	1.5
+++ mkpkglist	23 Jan 2005 22:14:16 -0000	1.6
@@ -67,14 +67,17 @@
     have_tgz = isfile(tgz_fn)
     have_bz2 = isfile(bz2_fn)
 
-    if have_zip or have_tgz or have_bz2:
-        print "    <tr><td>%s</td>" % name
-
-        print get_file_cell(prefix, ".zip", have_zip)
-        print get_file_cell(prefix, ".tgz", have_tgz)
-        print get_file_cell(prefix, ".tar.bz2", have_bz2)
+    have_some = have_zip or have_tgz or have_bz2
 
-        print "      </tr>"
+    if not have_some:
+        print "    <!--"
+    print "    <tr><td>%s</td>" % name
+    print get_file_cell(prefix, ".zip", have_zip)
+    print get_file_cell(prefix, ".tgz", have_tgz)
+    print get_file_cell(prefix, ".tar.bz2", have_bz2)
+    print "      </tr>"
+    if not have_some:
+        print "      -->"
 
 print '''\
     </tbody>



More information about the Python-checkins mailing list