/[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.5 Revision 1.6
1#!/usr/bin/python -OO 1#!/usr/bin/python -OO
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.5 $" 5__revision__ = "$Revision: 1.6 $"
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
318 ebuild['time'].gmtime().strftime("%a, %d %b %Y %H:%M:%S +0000")) 318 ebuild['time'].gmtime().strftime("%a, %d %b %Y %H:%M:%S +0000"))
319 ) 319 )
320 320
321 fp.write("</channel>\n</rss>\n") 321 fp.write("</channel>\n</rss>\n")
322 322
323def main(argv=Null): 323def main(argv=None):
324 if argv is None:
324 argv = argv or sys.argv 325 argv = sys.argv
325 try: 326 try:
326 if argv[1] == '-g': 327 if argv[1] == '-g':
327 ebuilddb.main() 328 ebuilddb.main()
328 except IndexError: 329 except IndexError:
329 pass 330 pass

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20