From 2acc5af34b07153442256ba5be7548df39e35c90 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Tue, 5 Dec 2006 08:24:42 +0000 Subject: [PATCH] * revert this. this is not the place to check. This broke pisi it http://.../.pisi if that package does not exist in repo. And also if it exists but not the same version, it downloads the file twice. Because after downloading sha1sum check does not match. --- pisi/package.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pisi/package.py b/pisi/package.py index af413ffd..02e9779d 100644 --- a/pisi/package.py +++ b/pisi/package.py @@ -47,12 +47,7 @@ class Package: dest = ctx.config.packages_dir() self.filepath = join(dest, url.filename()) - sha1sum = None - if exists(self.filepath): - sha1sum = util.sha1_file(self.filepath) - - name, version = util.parse_package_name(basename(self.filepath)) - if sha1sum != ctx.packagedb.get_package(name).packageHash: + if not exists(self.filepath): try: fetch_url(url, dest, ctx.ui.Progress) except pisi.fetcher.FetchError: