From: Mike O'Connor Date: Mon, 23 Feb 2009 14:59:35 +0000 (-0500) Subject: insert files, not dirs X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8214c96ee9a1407656073190165257cb68802c7b;p=dak.git insert files, not dirs Signed-off-by: Mike O'Connor --- diff --git a/daklib/binary.py b/daklib/binary.py index c6fc1174..f9cf2437 100755 --- a/daklib/binary.py +++ b/daklib/binary.py @@ -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()