From e3544ea0e2e9078fd849fb6f264c8b36b119a37a Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Mon, 7 Mar 2011 21:46:00 +0100 Subject: [PATCH] Include all files (except directories) in bin_contents table. Signed-off-by: Torsten Werner --- daklib/dbconn.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 6827891d..9b757d13 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -515,9 +515,8 @@ class DBBinary(ORMObject): fullpath = self.poolfile.fullpath dpkg = Popen(['dpkg-deb', '--fsys-tarfile', fullpath], stdout = PIPE) tar = TarFile.open(fileobj = dpkg.stdout, mode = 'r|') - anything_yielded = False for member in tar.getmembers(): - if member.isfile(): + if not member.isdir(): name = normpath(member.name) # enforce proper utf-8 encoding try: @@ -525,9 +524,6 @@ class DBBinary(ORMObject): except UnicodeDecodeError: name = name.decode('iso8859-1').encode('utf-8') yield name - anything_yielded = True - if not anything_yielded: - yield ' ' tar.close() dpkg.stdout.close() dpkg.wait() -- 2.39.5