1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

do not die after downloading -debuginfo packages

(can maybe solved in a nicer way)
This commit is contained in:
Adrian Schröter 2009-10-07 15:35:45 +00:00
parent 17a840deac
commit 79cada9493

View File

@ -83,7 +83,9 @@ class RpmQuery(packagequery.PackageQuery):
data = self.__file.read(self.header.length)
for i in self.header:
if i.tag in tags or len(tags) == 0:
self.__read_data(i, data)
try: # this may fail for -debug* packages
self.__read_data(i, data)
except: pass
def __read_lead(self):
data = self.__file.read(self.LEAD_SIZE)