def compute_md5(): released = paver.path.path(INSTALLERS_DIR).listdir() checksums = [] for f in released: m = md5.md5(open(f, 'r').read()) checksums.append('%s %s' % (m.hexdigest(), f)) return checksums
def compute_md5(): released = paver.path.path(INSTALLERS_DIR).listdir() checksums = [] for f in released: m = md5.md5(open(f, "r").read()) checksums.append("%s %s" % (m.hexdigest(), f)) return checksums
def compute_md5(): released = paver.path.path(options.installers.installersdir).listdir() checksums = [] for f in released: if not f.endswith('DS_Store'): m = md5.md5(open(f, 'r').read()) checksums.append('%s %s' % (m.hexdigest(), f)) return checksums