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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Aug 14 18:46:29 CEST 2010


Revision: 10733
          http://gar.svn.sourceforge.net/gar/?rev=10733&view=rev
Author:   wahwah
Date:     2010-08-14 16:46:29 +0000 (Sat, 14 Aug 2010)

Log Message:
-----------
mGAR v2: checkpkg, bugfixes for checkpkg_inspect_stats.py

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	2010-08-14 16:42:30 UTC (rev 10732)
+++ csw/mgar/gar/v2/bin/checkpkg_inspect_stats.py	2010-08-14 16:46:29 UTC (rev 10733)
@@ -35,7 +35,7 @@
   logging.debug("Collecting statistics about given package files.")
   filenames = []
   md5s = []
-  md5_re = re.compile(r"[0123456789abcdef]{32}")
+  md5_re = re.compile(r"^[0123456789abcdef]{32}$")
   for arg in args:
     if md5_re.match(arg):
       md5s.append(arg)
@@ -48,7 +48,7 @@
   bar.start()
   counter = itertools.count()
   for pkg in srv4_pkgs:
-    pkgstat_objs.append(checkpkg.PackageStats(x, debug=options.debug))
+    pkgstat_objs.append(checkpkg.PackageStats(pkg, debug=options.debug))
     bar.update(counter.next())
   for md5 in md5s:
     pkgstat_objs.append(checkpkg.PackageStats(None, md5sum=md5, debug=options.debug))
@@ -66,7 +66,7 @@
   if options.print_stats:
     print "import datetime"
     print "pkgstat_objs = ",
-    pprint.pprint(pkgstat_objs)
+    pprint.pprint(pkgstats)
   else:
     code.interact(local=locals())
 


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