[library-web] add fallback for modules using a variable as DOC_ID (GNOME bug 653288)
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] add fallback for modules using a variable as DOC_ID (GNOME bug 653288)
- Date: Sun, 12 Aug 2012 11:39:18 +0000 (UTC)
commit 16224e0f55c39eb3b4e2db050aad84736414aeb3
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Sun Aug 12 13:38:43 2012 +0200
add fallback for modules using a variable as DOC_ID (GNOME bug 653288)
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 c47564e..f0731c5 100644
--- a/src/modtypes/base.py
+++ b/src/modtypes/base.py
@@ -57,6 +57,9 @@ class DocModule(object):
# lays madness, instead simply cut out the variable, such as
# gnome-scan- API_VERSION@ becomes gnome-scan.
self.modulename = self.modulename.split('@')[0].strip('-')
+ if self.modulename.startswith('$('):
+ logging.warning('variadic module name: %s' % self.modulename)
+ self.modulename = self.tarballname
# 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]