[Pkg-python-debian-commits] r91 trunk: * Add examples dir for deb822 with a simple example.

Stefano Zacchiroli zack at bononia.it
Mon Dec 24 11:07:35 UTC 2007


------------------------------------------------------------
revno: 91
committer: Stefano Zacchiroli <zack at bononia.it>
branch nick: pkg-python-debian
timestamp: Mon 2007-12-24 12:07:35 +0100
message:
  * Add examples dir for deb822 with a simple example.
added:
  examples/deb822/
  examples/deb822/grep_native_packages.py
modified:
  debian/changelog
-------------- next part --------------
=== added directory 'examples/deb822'
=== added file 'examples/deb822/grep_native_packages.py'
--- a/examples/deb822/grep_native_packages.py	1970-01-01 00:00:00 +0000
+++ b/examples/deb822/grep_native_packages.py	2007-12-24 11:07:35 +0000
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+
+# grep the names of all Debian native packages out of Sources files
+# 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 3 of the License, or
+# (at your option) any later version.
+
+import sys
+
+from debian_bundle import deb822
+
+for fname in sys.argv[1:]:
+    f = file(fname)
+    for stanza in deb822.Sources.iter_paragraphs(f):
+        pieces = stanza['version'].split('-')
+        if len(pieces) < 2:
+            print stanza['package']
+    f.close()
+

=== modified file 'debian/changelog'
--- a/debian/changelog	2007-11-29 17:52:50 +0000
+++ b/debian/changelog	2007-12-24 11:07:35 +0000
@@ -3,7 +3,10 @@
   [ Filippo Giunchedi ]
   * Move tests to a separate subdirectory.
 
- -- Adeodato Sim? <dato at net.com.org.es>  Thu, 29 Nov 2007 18:52:06 +0100
+  [ Stefano Zacchiroli ]
+  * Add examples dir for deb822 with a simple example.
+
+ -- Stefano Zacchiroli <zack at debian.org>  Mon, 24 Dec 2007 12:06:49 +0100
 
 python-debian (0.1.7) unstable; urgency=low
 



More information about the pkg-python-debian-commits mailing list