pkgreader: look further for a nice package

This commit is contained in:
lilydjwg 2018-08-28 17:30:48 +08:00
parent 2ef72fe1a9
commit 3c26780080

View file

@ -18,7 +18,7 @@ def _add_to_dict(d, key, value):
def readpkg(file):
tar = tarfile.open(file)
for _ in range(3):
for _ in range(5):
info = tar.next()
if info and info.name == '.PKGINFO':
break