[jhbuild] tarball: substitute ${version} in branch/@module and branch/@checkoutdir
- From: Craig Keogh <cskeogh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] tarball: substitute ${version} in branch/@module and branch/@checkoutdir
- Date: Thu, 12 Jul 2012 12:32:04 +0000 (UTC)
commit 76ac7f4e265c52075569a28f284e044c5f2a4519
Author: Marcin Wojdyr <wojdyr gmail com>
Date: Mon Jul 2 13:05:08 2012 +0100
tarball: substitute ${version} in branch/@module and branch/@checkoutdir
jhbuild/versioncontrol/tarball.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/versioncontrol/tarball.py b/jhbuild/versioncontrol/tarball.py
index 0a3ebf0..137e5d8 100644
--- a/jhbuild/versioncontrol/tarball.py
+++ b/jhbuild/versioncontrol/tarball.py
@@ -71,6 +71,9 @@ class TarballRepository(Repository):
if module is None:
module = name
module = urlparse.urljoin(self.href, module)
+ module = module.replace('${version}', version)
+ if checkoutdir is not None:
+ checkoutdir = checkoutdir.replace('${version}', version)
if size is not None:
size = int(size)
if md5sum and (not hash or hashlib.__name__ == 'md5'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]