[csw-devel] SF.net SVN: gar:[12024] csw/mgar/gar/v2/lib/python/pkgdb.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Dec 20 11:37:48 CET 2010
Revision: 12024
http://gar.svn.sourceforge.net/gar/?rev=12024&view=rev
Author: wahwah
Date: 2010-12-20 10:37:47 +0000 (Mon, 20 Dec 2010)
Log Message:
-----------
pkgdb: Verify that the database has the right schema
Reuse the DB schema validation code.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/pkgdb.py
Modified: csw/mgar/gar/v2/lib/python/pkgdb.py
===================================================================
--- csw/mgar/gar/v2/lib/python/pkgdb.py 2010-12-20 10:37:07 UTC (rev 12023)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py 2010-12-20 10:37:47 UTC (rev 12024)
@@ -324,6 +324,9 @@
md5_sums = args
+ dm = database.DatabaseManager()
+ dm.AutoManage()
+
if (command, subcommand) == ('show', 'errors'):
for md5_sum in md5_sums:
srv4 = GetPkg(md5_sum)
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