X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=651e13ae7b6ac507ef468bda804df4f047a0b51c;hb=d0b5ef925b72dc0610d34037606f15cb81e02e7c;hp=6135a19f6f8bdf303d4978f7ce06868f9eef9c4a;hpb=dade1d4e91245074ff31a9c8e79fb2ea5b942c51;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 6135a19f..651e13ae 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -260,6 +260,7 @@ def create_hash(where, files, hashname, hashfunc): file_handle = open_file(f) except CantOpenError: rejmsg.append("Could not open file %s for checksumming" % (f)) + continue files[f][hash_key(hashname)] = hashfunc(file_handle) @@ -1494,7 +1495,7 @@ def temp_dirname(parent=None, prefix="dak", suffix=""): Returns a pathname to the new directory """ - return tempfile.mkdtemp(suffix, prefix, directory) + return tempfile.mkdtemp(suffix, prefix, parent) ################################################################################