Mercurial > treepkg
diff recipes/gnupg/base.py @ 327:f5282057838a
Revisions are now handled as strings
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 17 Mar 2010 13:42:42 +0000 |
parents | 98ffe5f3863b |
children | 3a83cb3c6504 |
line wrap: on
line diff
--- a/recipes/gnupg/base.py Wed Mar 17 13:38:37 2010 +0000 +++ b/recipes/gnupg/base.py Wed Mar 17 13:42:42 2010 +0000 @@ -44,7 +44,7 @@ % filename) def determine_package_version(self, directory): - return "%s+svn%d" % (self.orig_source_version(directory), self.revision) + return "%s+svn%s" % (self.orig_source_version(directory), self.revision) def do_package(self): pkgbaseversion, pkgbasedir = self.export_sources() @@ -59,7 +59,7 @@ # thus could not find the svn revision. treepkg.util.replace_in_file(os.path.join(pkgbasedir, "configure"), re.escape(orig_version) + "-svn0", - orig_version + "-svn%d" % self.revision) + orig_version + "-svn%s" % self.revision) pkgbasename = self.pkg_basename + "_" + pkgbaseversion origtargz = os.path.join(self.work_dir, @@ -67,7 +67,7 @@ self.create_tarball(origtargz, self.work_dir, os.path.basename(pkgbasedir)) - changemsg = ("Update to SVN rev. %d" % (self.revision,)) + changemsg = ("Update to SVN rev. %s" % (self.revision,)) self.copy_debian_directory(pkgbasedir, pkgbaseversion, changemsg) @@ -181,7 +181,7 @@ self.create_original_tarball() orig_dir = self.create_orig_dir() - changemsg = ("Update to SVN rev. %d" % (self.revision,)) + changemsg = ("Update to SVN rev. %s" % (self.revision,)) self.copy_debian_directory(orig_dir, self.pkgbaseversion, changemsg) self.create_source_package(orig_dir, self.origtargz)