[csw-devel] SF.net SVN: gar:[17286] csw/mgar/gar/v2/bin/checkpkg_inspect_stats.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Mar 4 13:29:06 CET 2012


Revision: 17286
          http://gar.svn.sourceforge.net/gar/?rev=17286&view=rev
Author:   wahwah
Date:     2012-03-04 12:29:06 +0000 (Sun, 04 Mar 2012)
Log Message:
-----------
checkpkg-inspect-stats: Display help first

...connect to the database second.

Modified Paths:
--------------
    csw/mgar/gar/v2/bin/checkpkg_inspect_stats.py

Modified: csw/mgar/gar/v2/bin/checkpkg_inspect_stats.py
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg_inspect_stats.py	2012-03-03 23:25:14 UTC (rev 17285)
+++ csw/mgar/gar/v2/bin/checkpkg_inspect_stats.py	2012-03-04 12:29:06 UTC (rev 17286)
@@ -21,7 +21,6 @@
 import configuration
 
 def main():
-  configuration.SetUpSqlobjectConnection()
   usage = "Usage: %prog [ options ] file | md5 [ file | md5 [ ... ] ]"
   parser = optparse.OptionParser(usage)
   parser.add_option("-d", "--debug", dest="debug",
@@ -35,6 +34,7 @@
   else:
     logging.basicConfig(level=logging.INFO)
   logging.debug("Collecting statistics about given package files.")
+  configuration.SetUpSqlobjectConnection()
   pkgstat_objs = checkpkg.GetPackageStatsByFilenamesOrMd5s(
       args,
       options.debug)

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