[csw-devel] SF.net SVN: gar:[8739] csw/mgar/gar/v2/lib/python/checkpkg.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Feb 22 16:33:04 CET 2010
Revision: 8739
http://gar.svn.sourceforge.net/gar/?rev=8739&view=rev
Author: wahwah
Date: 2010-02-22 15:33:04 +0000 (Mon, 22 Feb 2010)
Log Message:
-----------
mGAR v2: checkpkg, tolerate duplicate pkgnames
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/checkpkg.py
Modified: csw/mgar/gar/v2/lib/python/checkpkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg.py 2010-02-22 15:29:53 UTC (rev 8738)
+++ csw/mgar/gar/v2/lib/python/checkpkg.py 2010-02-22 15:33:04 UTC (rev 8739)
@@ -276,7 +276,11 @@
"""
for line in stdout.splitlines():
pkgname, pkg_desc = self._ParsePkginfoLine(line)
- c.execute(sql, [pkgname, pkg_desc])
+ try:
+ c.execute(sql, [pkgname, pkg_desc])
+ except sqlite3.IntegrityError, e:
+ logging.warn("pkgname %s throws an sqlite3.IntegrityError: %s",
+ repr(pkgname), e)
def SetDatabaseMtime(self):
c = self.conn.cursor()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list