changeset 504:dcec034fed97

Remove the type for the additionals variable in determine_package_version altogether.
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 25 Oct 2010 14:30:08 +0000
parents 44a005311f62
children b7aad4cb58bb
files treepkg/packager.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/packager.py	Mon Oct 25 14:00:03 2010 +0000
+++ b/treepkg/packager.py	Mon Oct 25 14:30:08 2010 +0000
@@ -28,7 +28,6 @@
 from cmdexpand import cmdexpand
 from builder import PBuilder
 from sbuilder import SbdmockBuilder
-from types import DictType
 
 def _fromparent(attr):
     """Creates a property that delegates its value to self.parent.<attr>"""
@@ -119,7 +118,7 @@
         pkg_time = time.strftime("%H%M", localtime)
         upstream_version = self.determine_upstream_version(directory)
         version_dict = locals().copy()
-        if type(additionals) is DictType:
+        if additionals:
             version_dict.update(additionals)
         return self.track.version_template % version_dict
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)