/[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.8 Revision 1.9
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.8 $" 5__revision__ = "$Revision: 1.9 $"
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
663 return -1 663 return -1
664 return 0 664 return 0
665 665
666def ebuilds_to_rss(fp, ebuilds, simple=False, subtitle=""): 666def ebuilds_to_rss(fp, ebuilds, simple=False, subtitle=""):
667 """write out ebuild info to RSS file (fp)""" 667 """write out ebuild info to RSS file (fp)"""
668 fp.write("""<?xml version="1.0" encoding="iso-8859-1"?> 668 fp.write("""<?xml version="1.0" encoding="UTF-8"?>
669 <rss version="0.92"> 669 <rss version="0.92">
670 <channel> 670 <channel>
671 <title>packages.gentoo.org [ %s ]</title> 671 <title>packages.gentoo.org [ %s ]</title>
672 <link>%s</link> 672 <link>%s</link>
673 <description>Latest ebuilds from the Gentoo Linux portage tree</description> 673 <description>Latest ebuilds from the Gentoo Linux portage tree</description>

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20