#6191: ExtUtils-CBuilder-0.280223.tar.gz missing in look-aside cache

Fedora Release Engineering rel-eng at lists.fedoraproject.org
Thu Jun 4 11:41:04 UTC 2015


#6191: ExtUtils-CBuilder-0.280223.tar.gz missing in look-aside cache
------------------------------+-----------------------
  Reporter:  ppisar           |      Owner:  rel-eng@…
      Type:  defect           |     Status:  reopened
 Milestone:  Fedora 22 Final  |  Component:  koji
Resolution:                   |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------

Comment (by pingou):

 Ok I wrote a script to check all the folder, it doesn't report any errors
 anymore

 {{{
 #!/usr/bin/python

 import os

 basedir = '/srv/cache/lookaside/pkgs/'

 for pkg in sorted(os.listdir(basedir)):
     if pkg in ['.', '..', '.#upload.cgi.1.6']:
         continue
     #print pkg
     pkg_versioned = os.listdir(os.path.join(basedir, pkg))
     for pkgv in pkg_versioned:
         path = os.path.join(basedir, pkg, pkgv)
         if not os.path.isdir(path):
             #print 'Ignoring (file not folder): %s' % path
             continue
         files = os.listdir(path)
         if 'md5' in files:
             shum = os.listdir(os.path.join(path, 'md5'))
             if len(shum) > 1:
                 print 'Check %s' % files
                 continue
             shum = shum[0]
             sources = os.listdir(os.path.join(path, 'md5', shum))
             if len(sources) > 1:
                 print 'Check %s' % files
                 continue
             sources = sources[0]
             if not os.path.exists(os.path.join(path, shum, sources)):
                 print 'Fix %s' % os.path.join(path, shum, sources)
             break
 }}}

-- 
Ticket URL: <https://fedorahosted.org/rel-eng/ticket/6191#comment:6>
Fedora Release Engineering <http://fedorahosted.org/rel-eng>
Release Engineering for the Fedora Project


More information about the rel-eng mailing list