X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Futil%2Fhashfile.py;fp=htsworkflow%2Futil%2Fhashfile.py;h=fcfb7a386edbb1453d85275167be641ab358b236;hp=af3db764971623b9c3580684ddef2ea90b63ee0c;hb=5fa05df54d99a784fce669a02d8c88710aea2276;hpb=9ae32670d31d87b7e695b218b3fdbe4d94ac9a23 diff --git a/htsworkflow/util/hashfile.py b/htsworkflow/util/hashfile.py index af3db76..fcfb7a3 100644 --- a/htsworkflow/util/hashfile.py +++ b/htsworkflow/util/hashfile.py @@ -40,8 +40,8 @@ def make_md5sum_unix(filename, md5_cache): def parse_md5sum_line(lines, filename): md5sum, md5sum_filename = lines[0].split() - md5sum_filename = os.path.normpath(md5sum_filename) - filename = os.path.normpath(filename) + md5sum_filename = os.path.basename(md5sum_filename) + filename = os.path.basename(filename) if md5sum_filename != filename: errmsg = "MD5sum and I disagre about filename. {0} != {1}" logger.error(errmsg.format(filename, md5sum_filename))