X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=5cb502d6d3b51a15fc08fba8843ce9530637bda6;hb=1483a68353fe374254379f4560cc245fbf2523d4;hp=9582dadb997cd8646e6f5c706485036b8a0d7d67;hpb=9af1235da5224336ede312fb5c3e0fe791bc19f0;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 9582dadb..5cb502d6 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1443,7 +1443,7 @@ def generate_contents_information(filename): Generate a list of flies contained in a .deb @type filename: string - @param filename: the path to a .deb + @param filename: the path to a data.tar.gz or data.tar.bz2 @rtype: list @return: a list of files in the data.tar.* portion of the .deb @@ -1481,6 +1481,7 @@ def generate_contents_information(filename): finally: if os.path.exists( chunks[2] ): + shutil.rmtree( chunks[2] ) os.remove( chunks[2] ) return contents