[Pkg-zenoss-commits] r28 - in packages/pynetsnmp/trunk/debian: . patches

Bernd Zeimetz bzed-guest at alioth.debian.org
Wed May 9 00:21:07 UTC 2007


Author: bzed-guest
Date: 2007-05-09 00:21:07 +0000 (Wed, 09 May 2007)
New Revision: 28

Modified:
   packages/pynetsnmp/trunk/debian/changelog
   packages/pynetsnmp/trunk/debian/patches/setup-version.dpatch
Log:
bleh!
0.23 still doesn't have a version from upstream...


Modified: packages/pynetsnmp/trunk/debian/changelog
===================================================================
--- packages/pynetsnmp/trunk/debian/changelog	2007-05-09 00:07:41 UTC (rev 27)
+++ packages/pynetsnmp/trunk/debian/changelog	2007-05-09 00:21:07 UTC (rev 28)
@@ -1,4 +1,4 @@
-pynetsnmp (0.22-1) unstable; urgency=low
+pynetsnmp (0.23-1) unstable; urgency=low
 
   * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
 

Modified: packages/pynetsnmp/trunk/debian/patches/setup-version.dpatch
===================================================================
--- packages/pynetsnmp/trunk/debian/patches/setup-version.dpatch	2007-05-09 00:07:41 UTC (rev 27)
+++ packages/pynetsnmp/trunk/debian/patches/setup-version.dpatch	2007-05-09 00:21:07 UTC (rev 28)
@@ -5,11 +5,23 @@
 
 @DPATCH@
 diff -urNad pynetsnmp~/setup.py pynetsnmp/setup.py
---- pynetsnmp~/setup.py	2007-04-07 20:48:28.000000000 +0200
-+++ pynetsnmp/setup.py	2007-05-09 00:40:41.000000000 +0200
-@@ -8,4 +8,5 @@
-       author_email='ecn at zenoss.com',
+--- pynetsnmp~/setup.py	2007-05-09 02:16:32.000000000 +0200
++++ pynetsnmp/setup.py	2007-05-09 02:19:15.000000000 +0200
+@@ -4,6 +4,11 @@
+ 
+ import genconstants
+ 
++#bad, bad hack. should be fixed by upstream, and I'm to lazy to do it proper now.
++import os
++vin, vout = os.popen4('bash -c "dpkg-parsechangelog  | grep \'^Version\' | sed \'s,.* ,,g;s,-.*,,g\'"')
++VERSION = vout.read().strip()
++map(file.close, (vin, vout))
+ 
+ class clean(_clean):
+     def run(self):
+@@ -24,4 +29,5 @@
+       cmdclass={'build': build, 'clean' : clean},
        package_dir = {'pynetsnmp':'.',},
        packages = ['pynetsnmp',],
-+      version = "0.22",
++      version = VERSION,
        )




More information about the Pkg-zenoss-commits mailing list