[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] bug on gen_win.py with sqlite version number

From: <lalvarez_at_infomed.sld.cu>
Date: Wed, 27 May 2009 13:19:13 -0400

Hy there

while genereting MSVC 2008 projects with the last SQLite source I've recived this error
message

C:\Subversion\trunk>gen-make.py -t vcproj --vsnet-version=2008
--with-sqlite=C:\Subversion\sqlite
BDB not found, BDB fs will not be built
Generating for VS.NET 2008
Could not detect Ruby version.
  Ruby bindings will be linked with msvcrt-ruby18.lib
Found installed perl version number.
  Perl bindings will be linked with perl510.lib
Could not find installed SWIG, assuming version 1.3.25
Traceback (most recent call last):
  File "C:\Subversion\trunk\gen-make.py", line 287, in <module>
    main(conf, gentype, skip_depends=skip, other_options=rest.list)
  File "C:\Subversion\trunk\gen-make.py", line 40, in main
    generator = gen_module.Generator(fname, verfname, other_options)
  File "build\generator\gen_vcnet_vcproj.py", line 18, in __init__
    'vcnet-vcproj')
  File "build\generator\gen_win.py", line 224, in __init__
    self._find_sqlite()
  File "build\generator\gen_win.py", line 1399, in _find_sqlite
    version = tuple(map(int, vermatch.groups()))
AttributeError: 'NoneType' object has no attribute 'groups'

the reason is that this line in the sqlite.c file of the SQLite source code

#define SQLITE_VERSION "3.6.14.2"

the version has 4 numbers instead of 3,

the problem is that the script craches becouse it can find the version number of SQLite

the regular expresion I've change in the patch was looking for 3 numbers only within the
""

I asume that previous versions of sqlite come with 3 numbers so I made the regular
expresion to find both 3 and 4 version numbers.

pd:
sorry for then application/octet-stream I was unable to changed

------------------------------
Infomed - Red de Salud de Cuba
http://www.sld.cu/

---------------------------------------
    Red Telematica de Salud - Cuba
              CNICM - Infomed

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2355835

Received on 2009-05-28 07:32:45 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.