What you ever you were, you are no more.
Thanks to meren for the tip. :) BUG:FIXED:4113
This commit is contained in:
+6
-2
@@ -47,8 +47,12 @@ class Package:
|
|||||||
dest = ctx.config.packages_dir()
|
dest = ctx.config.packages_dir()
|
||||||
self.filepath = join(dest, url.filename())
|
self.filepath = join(dest, url.filename())
|
||||||
|
|
||||||
#FIXME: also check sha1sum
|
sha1sum = None
|
||||||
if not exists(self.filepath):
|
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:
|
||||||
try:
|
try:
|
||||||
fetch_url(url, dest, ctx.ui.Progress)
|
fetch_url(url, dest, ctx.ui.Progress)
|
||||||
except pisi.fetcher.FetchError:
|
except pisi.fetcher.FetchError:
|
||||||
|
|||||||
Reference in New Issue
Block a user