/[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.3 Revision 1.4
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.3 $" 5__revision__ = "$Revision: 1.4 $"
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
281 #print results 281 #print results
282 return [ query_to_dict(i) for i in results ] 282 return [ query_to_dict(i) for i in results ]
283 283
284def ebuilds_to_rss(fp, ebuilds, simple=False, subtitle=""): 284def ebuilds_to_rss(fp, ebuilds, simple=False, subtitle=""):
285 """write out ebuild info to RSS file (fp)""" 285 """write out ebuild info to RSS file (fp)"""
286 fp.write("""<?xml version="1.0" encoding="utf-8"?> 286 fp.write("""<?xml version="1.0" encoding="iso-8859-1"?>
287 <rss version="0.92"> 287 <rss version="0.92">
288 <channel> 288 <channel>
289 <title>Fresh ebuilds %s</title> 289 <title>Fresh ebuilds %s</title>
290 <link>%s</link> 290 <link>%s</link>
291 <description>Latest ebuilds from the Gentoo Linux portage tree</description> 291 <description>Latest ebuilds from the Gentoo Linux portage tree</description>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20