[Pkg-python-debian-commits] r52 ./trunk: me as an uploader, vcs field, new example for Packages
zack at bononia.it
zack at bononia.it
Sat Jun 30 13:28:46 UTC 2007
------------------------------------------------------------
revno: 52
committer: zack at bononia.it
branch nick: pkg-python-debian
timestamp: Sat 2007-06-30 15:28:46 +0200
message:
me as an uploader, vcs field, new example for Packages
added:
examples/packages/
examples/packages/grep-maintainer
modified:
debian/changelog
debian/control
-------------- next part --------------
=== added directory 'examples/packages'
=== added file 'examples/packages/grep-maintainer'
--- a/examples/packages/grep-maintainer 1970-01-01 00:00:00 +0000
+++ b/examples/packages/grep-maintainer 2007-06-30 13:28:46 +0000
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+# grep-maintainer
+# Copyright (C) 2007 Stefano Zacchiroli <zack at debian.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# Dumb maintainer-based grep for the dpkg status file, just to show the parsing
+# API for Packages-like file
+
+import re
+import sys
+from debian_bundle.debian_support import PackageFile
+
+try:
+ maint_RE = re.compile(sys.argv[1])
+except:
+ print "Usage: grep-maintainer REGEXP"
+ sys.exit(1)
+
+packages = PackageFile('/var/lib/dpkg/status')
+for pkg in packages:
+ pkg_dict = dict(map(lambda (x,y): (x.lower(), y), pkg))
+ if maint_RE.search(pkg_dict['maintainer']):
+ print pkg_dict['package']
+
=== modified file 'debian/changelog'
--- a/debian/changelog 2007-06-17 14:50:31 +0000
+++ b/debian/changelog 2007-06-30 13:28:46 +0000
@@ -1,3 +1,14 @@
+python-debian (0.1.4) UNRELEASED; urgency=low
+
+ [ Stefano Zacchiroli ]
+ * debian/control
+ - joining the team: add myself as an uploader
+ - add Vcs-Bzr field pointing to our Bzr repository on bzr.debian.org
+ * examples/
+ - added grep-maintainer example to show the Packages parsing API
+
+ -- Stefano Zacchiroli <zack at debian.org> Sat, 30 Jun 2007 15:27:46 +0200
+
python-debian (0.1.3) unstable; urgency=low
[ James Westby ]
=== modified file 'debian/control'
--- a/debian/control 2007-06-14 19:02:51 +0000
+++ b/debian/control 2007-06-30 13:28:46 +0000
@@ -2,10 +2,11 @@
Section: devel
Priority: optional
Maintainer: Debian python-debian Maintainers <pkg-python-debian-maint at lists.alioth.debian.org>
-Uploaders: Adeodato Sim?? <dato at net.com.org.es>, Enrico Zini <enrico at debian.org>, James Westby <jw+debian at jameswestby.net>, Reinhard Tartler <siretart at tauware.de>
+Uploaders: Adeodato Sim?? <dato at net.com.org.es>, Enrico Zini <enrico at debian.org>, James Westby <jw+debian at jameswestby.net>, Reinhard Tartler <siretart at tauware.de>, Stefano Zacchiroli <zack at debian.org>
Build-Depends: debhelper (>= 5.0.37.2), python
Build-Depends-Indep: python-support (>= 0.3)
Standards-Version: 3.7.2
+X-Vcs-Bzr: http://bzr.debian.org/pkg-python-debian/trunk/
Package: python-debian
Architecture: all
More information about the Pkg-python-debian-commits
mailing list