]> err.no Git - dak/commitdiff
insert files, not dirs
authorMike O'Connor <stew@vireo.org>
Mon, 23 Feb 2009 14:59:35 +0000 (09:59 -0500)
committerMike O'Connor <stew@vireo.org>
Mon, 23 Feb 2009 14:59:35 +0000 (09:59 -0500)
Signed-off-by: Mike O'Connor <stew@vireo.org>
daklib/binary.py

index c6fc1174de60bf6a034d71a872492248f188b2c6..f9cf2437fe55f09ffed0218bf735628b07a2c764 100755 (executable)
@@ -142,7 +142,7 @@ class Binary(object):
                 elif self.chunks[2] == "data.tar.bz2":
                     data = tarfile.open(os.path.join(self.tmpdir, "data.tar.bz2" ), "r:bz2")
 
-                return DBConn().insert_content_paths(pkg, [ tarinfo.name for tarinfo in data if tarinfo.isdir()])
+                return DBConn().insert_content_paths(pkg, [ tarinfo.name for tarinfo in data if not tarinfo.isdir()])
 
             except:
                 traceback.print_exc()