X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=7129aa32ed4f7d1f62aca4c094adfb5051380704;hb=b43ed3ff3738940ce46caa836d88b6937a76582c;hp=c6300539791d6c3811c6bad0a0431244cc67fe9b;hpb=dab0414eff3741bbdf9f9e294292f20fb2a4d129;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index c6300539..7129aa32 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -37,7 +37,6 @@ import stat import apt_pkg import database import time -import tarfile import re import string import email as modemail @@ -261,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) @@ -1526,4 +1526,4 @@ apt_pkg.ReadConfigFileISC(Cnf,default_config) if which_conf_file() != default_config: apt_pkg.ReadConfigFileISC(Cnf,which_conf_file()) -############################################################################### +################################################################################