X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=651e13ae7b6ac507ef468bda804df4f047a0b51c;hb=ee00ba60099f741819f991db13b4d0fc65bdd960;hp=6135a19f6f8bdf303d4978f7ce06868f9eef9c4a;hpb=04dc27ae10c3dc9bb001544c297ae089256c3ef1;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) ################################################################################