library-web r440 - in trunk: . src
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: library-web r440 - in trunk: . src
- Date: Tue, 6 May 2008 07:10:29 +0100 (BST)
Author: fpeters
Date: Tue May 6 06:10:28 2008
New Revision: 440
URL: http://svn.gnome.org/viewvc/library-web?rev=440&view=rev
Log:
* src/lgo.py: in Python 2.5, tar.name is now the full filename, with
path, instead of the tar basename; added workaround.
Modified:
trunk/ChangeLog
trunk/src/lgo.py
Modified: trunk/src/lgo.py
==============================================================================
--- trunk/src/lgo.py (original)
+++ trunk/src/lgo.py Tue May 6 06:10:28 2008
@@ -370,6 +370,8 @@
# gnome-scan- API_VERSION@ becomes gnome-scan.
self.modulename = self.modulename.split('@')[0].strip('-')
self.version = os.path.splitext(tar.name)[0].split('-')[-1]
+ if self.version.endswith('.tar'):
+ self.version = self.version[:-4]
self.one_dot_version = re.match(r'\d+\.\d+', self.version).group()
if self.related_xsl_files:
@@ -1706,6 +1708,8 @@
tar = tarfile.open(filename, 'r')
doc_version = os.path.splitext(tar.name)[0].split('-')[-1]
+ if doc_version.endswith('.tar'):
+ doc_version = doc_version[:-4]
more_tarball_docs = self.overlay.more_tarball_docs.get(
base_tarball_name, [])[:]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]