From 4c2de6d9a9fb0fa239b14394e1f4af69cc8474a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Kandemir?= Date: Fri, 10 Dec 2010 09:24:04 +0000 Subject: [PATCH] file: Fixed not keeping original filename --- pisi/file.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pisi/file.py b/pisi/file.py index c1a9a172..12acdd82 100644 --- a/pisi/file.py +++ b/pisi/file.py @@ -111,6 +111,8 @@ class File: # Check file integrity before saving? check_integrity = sha1sum or sign + origfile = pisi.util.join_path(transfer_dir, uri.filename()) + if sha1sum: sha1filename = File.download(pisi.uri.URI(uri.get_uri() + '.sha1sum'), transfer_dir) sha1f = file(sha1filename)