[library-web] trivial handling of module names declared with a variable version number
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] trivial handling of module names declared with a variable version number
- Date: Sun, 26 Jan 2014 22:07:40 +0000 (UTC)
commit 67b52603473a3094bebf1193177290508989c2b2
Author: Frédéric Péters <fpeters 0d be>
Date: Sun Jan 26 22:07:11 2014 +0000
trivial handling of module names declared with a variable version number
src/modtypes/base.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/base.py b/src/modtypes/base.py
index 1166cc3..f5f2323 100644
--- a/src/modtypes/base.py
+++ b/src/modtypes/base.py
@@ -60,6 +60,9 @@ class DocModule(object):
if self.modulename.startswith('$('):
logging.warning('variadic module name: %s' % self.modulename)
self.modulename = self.tarballname
+ elif '-$(' in self.modulename and self.modulename.endswith(')'):
+ # most likely a version number included as a variable
+ self.modulename = re.sub(r'-\$\(.*\)', '', self.modulename)
# remove the version part, so libsoup-2.4 is handled just like
# another version of libsoup
self.modulename = re.sub('-\d+\.\d+$', '', self.modulename)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]