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