Pardus Linux Security Advisories

This commit is contained in:
Bahadır Kandemir
2006-06-08 12:38:33 +00:00
parent b979d52d36
commit e1ec146aca
+2 -1
View File
@@ -131,7 +131,8 @@ class File:
localfile = join(transfer_dir, os.path.basename(localfile))
shutil.copy(oldfn, localfile)
if sha1sum:
if sha1sum:
print newsha1
if (pisi.util.sha1_file(localfile) != newsha1):
raise Error(_("File integrity of %s compromised.") % uri)