/[gentoo]/src/packages/gentoo.py
Gentoo

Diff of /src/packages/gentoo.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
1#!/usr/bin/python -O 1#!/usr/bin/python -O
2"""These functions mainly take ebuild info (grabbed from the database and 2"""These functions mainly take ebuild info (grabbed from the database and
3 convert it to HTML. See the "main" function at the bottom.""" 3 convert it to HTML. See the "main" function at the bottom."""
4 4
5__revision__ = "$Revision: 1.13 $" 5__revision__ = "$Revision: 1.14 $"
6# $Source: /var/cvsroot/gentoo/src/packages/gentoo.py,v $ 6# $Source: /var/cvsroot/gentoo/src/packages/gentoo.py,v $
7 7
8import config 8import config
9import os 9import os
10import time 10import time
149 '</td></tr>' % (config.FEHOME, quote(ebinfo['category']), 149 '</td></tr>' % (config.FEHOME, quote(ebinfo['category']),
150 quote(ebinfo['name']), 150 quote(ebinfo['name']),
151 ebinfo['name'], 151 ebinfo['name'],
152 ebinfo['version'], 152 ebinfo['version'],
153 new_string, 153 new_string,
154 ebinfo['time'].localtime().strftime("%c %Z"))) 154 ebinfo['time'].strftime("%c %Z")))
155 155
156 if full: 156 if full:
157 image = ('<img class="pkgimg" alt="" src="%s/%s/%s.jpg" align="right">' % 157 image = ('<img class="pkgimg" alt="" src="%s/%s/%s.jpg" align="right">' %
158 (config.ICONS, ebinfo['category'], ebinfo['name']) 158 (config.ICONS, ebinfo['category'], ebinfo['name'])
159 ) 159 )
680 <url>%s</url> 680 <url>%s</url>
681 <link>%s</link> 681 <link>%s</link>
682 </image> 682 </image>
683 683
684 <managingEditor>marduk@gentoo.org</managingEditor> 684 <managingEditor>marduk@gentoo.org</managingEditor>
685 <pubDate>%s</pubDate>\n""" % (subtitle, link, config.RSS_IMAGE, 685 <pubDate>%s</pubDate>""" % (subtitle, link, config.RSS_IMAGE,
686 config.FEHOME, pubDate)) 686 config.FEHOME, pubDate))
687 687
688 for ebuild in ebuilds: 688 for ebuild in ebuilds:
689 if simple: 689 if simple:
690 description = escape(ebuild['description']) 690 description = escape(ebuild['description'])
708 ebuild['version'], 708 ebuild['version'],
709 config.FEHOME, 709 config.FEHOME,
710 ebuild['name'], 710 ebuild['name'],
711 ebuild['version'], 711 ebuild['version'],
712 description, 712 description,
713 ebuild['time'].gmtime().strftime("%a, %d %b %Y %H:%M:%S +0000")) 713 ebuild['time'].strftime("%a, %d %b %Y %H:%M:%S +0000"))
714 ) 714 )
715 715
716 fp.write("\n\ 716 fp.write("\n\
717 <textInput>\n\ 717 <textInput>\n\
718 <title>Search the Online Package Database</title>\n\ 718 <title>Search the Online Package Database</title>\n\

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20