mirror of
https://github.com/python/cpython.git
synced 2025-12-07 17:57:56 +00:00
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)
This commit is contained in:
parent
9c131f2879
commit
93f18f6f77
1 changed files with 10 additions and 7 deletions
|
|
@ -67,14 +67,17 @@ for name, prefix in PKG_TYPES:
|
||||||
have_tgz = isfile(tgz_fn)
|
have_tgz = isfile(tgz_fn)
|
||||||
have_bz2 = isfile(bz2_fn)
|
have_bz2 = isfile(bz2_fn)
|
||||||
|
|
||||||
if have_zip or have_tgz or have_bz2:
|
have_some = have_zip or have_tgz or have_bz2
|
||||||
print " <tr><td>%s</td>" % name
|
|
||||||
|
|
||||||
print get_file_cell(prefix, ".zip", have_zip)
|
if not have_some:
|
||||||
print get_file_cell(prefix, ".tgz", have_tgz)
|
print " <!--"
|
||||||
print get_file_cell(prefix, ".tar.bz2", have_bz2)
|
print " <tr><td>%s</td>" % name
|
||||||
|
print get_file_cell(prefix, ".zip", have_zip)
|
||||||
print " </tr>"
|
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 '''\
|
print '''\
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue