[library-web] Merge "3.x" doc modules with their "2.x" counterparts (GNOME bug 620546)
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] Merge "3.x" doc modules with their "2.x" counterparts (GNOME bug 620546)
- Date: Sat, 12 Jun 2010 15:18:09 +0000 (UTC)
commit 9ec37cea9c9926138ba0a1e28fa24ec15eede6c2
Author: Frédéric Péters <fpeters 0d be>
Date: Sat Jun 12 16:41:37 2010 +0200
Merge "3.x" doc modules with their "2.x" counterparts (GNOME bug 620546)
src/modtypes/base.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/base.py b/src/modtypes/base.py
index c48301a..0deb26c 100644
--- a/src/modtypes/base.py
+++ b/src/modtypes/base.py
@@ -56,6 +56,10 @@ class DocModule(object):
# remove the version part, so libsoup-2.4 is handled just like
# another version of libsoup
self.modulename = re.sub('-\d+\.\d+$', '', self.modulename)
+ # and gtk & friends just add a single digit to their modulename for
+ # their 3.x version (e.g. gtk3, gdk-pixbuf3), remove trailing
+ # digits
+ self.modulename = re.sub('\d+$', '', self.modulename)
self.version = os.path.splitext(tar.name)[0].split('-')[-1]
if self.version.endswith('.tar'):
self.version = self.version[:-4]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]