[Treepkg-commits] r467 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Oct 25 16:30:08 CEST 2010
Author: aheinecke
Date: 2010-10-25 16:30:08 +0200 (Mon, 25 Oct 2010)
New Revision: 467
Modified:
trunk/treepkg/packager.py
Log:
Remove the type for the additionals variable in determine_package_version
altogether.
Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py 2010-10-25 14:00:03 UTC (rev 466)
+++ trunk/treepkg/packager.py 2010-10-25 14:30:08 UTC (rev 467)
@@ -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
More information about the Treepkg-commits
mailing list