/[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.12 Revision 1.13
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.12 $" 5__revision__ = "$Revision: 1.13 $"
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
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>""" % (subtitle, link, config.RSS_IMAGE, 685 <pubDate>%s</pubDate>\n""" % (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'])
712 description, 712 description,
713 ebuild['time'].gmtime().strftime("%a, %d %b %Y %H:%M:%S +0000")) 713 ebuild['time'].gmtime().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\
719 <link>%s/search/</link>\n\ 719 <link>%s/search/</link>\n\
720 <description>emerge -Ss</description>\n\ 720 <description>emerge -Ss</description>\n\
721 <name>sstring</name>\n\ 721 <name>sstring</name>\n\
722 </textinput>\n\ 722 </textInput>\n\
723 </channel>\n\ 723 </channel>\n\
724 </rss>\n" % config.FEHOME) 724 </rss>\n" % config.FEHOME)
725 725
726def main(argv=None): 726def main(argv=None):
727 if argv is None: 727 if argv is None:

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

  ViewVC Help
Powered by ViewVC 1.1.20