[Pkg-xen-changes] r466 - trunk/xen-3/debian/bin

Bastian Blank waldi at alioth.debian.org
Mon Oct 15 22:05:42 UTC 2007


Author: waldi
Date: Mon Oct 15 22:05:42 2007
New Revision: 466

Log:
debian/bin/genorig.py: Pull source package name from changelog.


Modified:
   trunk/xen-3/debian/bin/genorig.py

Modified: trunk/xen-3/debian/bin/genorig.py
==============================================================================
--- trunk/xen-3/debian/bin/genorig.py	(original)
+++ trunk/xen-3/debian/bin/genorig.py	Mon Oct 15 22:05:42 2007
@@ -2,11 +2,19 @@
 
 import os, os.path, re, shutil, sys
 
+sys.path.append(sys.path[0] + '/../lib/python')
+
+from debian_xen.debian import VersionXen
+from debian_linux.debian import Changelog
+
 class GenOrig(object):
     log = sys.stdout.write
 
-    def __init__(self, source, repo, tag = None, version = None):
-        self.source, self.repo, self.tag, self.version = source, repo, tag, version
+    def __init__(self, repo, tag, version):
+        self.repo, self.tag, self.version = repo, tag, version
+
+        self.changelog_entry = Changelog(version = VersionXen)[0]
+        self.source = self.changelog_entry.source
 
     def __call__(self):
         import tempfile
@@ -62,4 +70,4 @@
     p.add_option("-t", "--tag", dest = "tag")
     p.add_option("-v", "--version", dest = "version")
     options, args = p.parse_args(sys.argv)
-    GenOrig(args[1], args[2], options.tag, options.version)()
+    GenOrig(args[1], options.tag, options.version)()



More information about the Pkg-xen-changes mailing list