[csw-devel] SF.net SVN: gar:[17775] csw/mgar/gar/v2/lib/python/find_missing_bins.py

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Thu Apr 19 13:58:22 CEST 2012


Revision: 17775
          http://gar.svn.sourceforge.net/gar/?rev=17775&view=rev
Author:   cgrzemba
Date:     2012-04-19 11:58:22 +0000 (Thu, 19 Apr 2012)
Log Message:
-----------
remove search in older catalogs

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/find_missing_bins.py

Modified: csw/mgar/gar/v2/lib/python/find_missing_bins.py
===================================================================
--- csw/mgar/gar/v2/lib/python/find_missing_bins.py	2012-04-19 11:51:13 UTC (rev 17774)
+++ csw/mgar/gar/v2/lib/python/find_missing_bins.py	2012-04-19 11:58:22 UTC (rev 17775)
@@ -126,9 +126,7 @@
     with open(fn_stdlibs, "r") as fd:
         stdlibs = cjson.decode(fd.read())
     fl = open(fn_report, "w")
-    rIdx = -1
     for osrel in common_constants.OS_RELS:
-      rIdx = rIdx+1
       if osrel in common_constants.OBSOLETE_OS_RELS:
         logging.debug("scanPackage: %s is obsoleted" % osrel)
         continue
@@ -173,20 +171,6 @@
                     # logging.debug ("\nfound %s" % nb)
             # at last search the lib in earlier os releases
             if not found: 
-              # if not found iterate over older OS releases
-              r = rIdx
-              while r > 0:
-                r = r - 1
-                logging.debug ("\nscanPackage: compare lower osrel %s [%s]: %s %d %d" % (common_constants.OS_RELS[r],pkg,nb,rIdx,r))
-                lbins = rd.getBins(catrel, arch, common_constants.OS_RELS[r])
-                for lnpkg in lbins:
-                  for lb in lbins[lnpkg]:
-                    if nb in lb:
-                      found = True
-                      logging.debug ("\nfound %s [%s]: %s in %s (%s)" % (osrel,pkg,nb,lb,lnpkg))
-                      break
-                  if found: break
-            if not found: 
               fl.write("%s:%s:%s:%s\n" % (nb,pkg,arch,osrel) )
               print "\nNOT FOUND: %s, needed in pkg %s %s %s" % (nb,pkg,arch,osrel)
             sys.stdout.write("\rscanPackage %4d %s" % (i,pkg))
@@ -204,6 +188,7 @@
     makeStdLibDb.buildStdlibList()
   pr = PackageScanner()
   pr.scanPackage()
+  print ""
 
 
 if __name__ == '__main__':

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