fix fetch problem...
This commit is contained in:
+3
-2
@@ -72,6 +72,8 @@ class Package:
|
|||||||
# FIXME: exists is not enough, also sha1sum check needed
|
# FIXME: exists is not enough, also sha1sum check needed
|
||||||
# when implemented in pisi-index.xml
|
# when implemented in pisi-index.xml
|
||||||
if not exists(self.filepath):
|
if not exists(self.filepath):
|
||||||
|
fetch_url(url, dest, ctx.ui.Progress)
|
||||||
|
|
||||||
if installed and exists(current_fn):
|
if installed and exists(current_fn):
|
||||||
# if package is installed and old pisi file exists, fetch xdelta
|
# if package is installed and old pisi file exists, fetch xdelta
|
||||||
if not exists(xdelta_fn):
|
if not exists(xdelta_fn):
|
||||||
@@ -81,9 +83,8 @@ class Package:
|
|||||||
except FetchError:
|
except FetchError:
|
||||||
pass
|
pass
|
||||||
# generate new one using old pisi file and xdelta
|
# generate new one using old pisi file and xdelta
|
||||||
|
# baris: but why do we generate this here?
|
||||||
util.generate_pisi_file(xdelta_fn, current_fn, self.filepath)
|
util.generate_pisi_file(xdelta_fn, current_fn, self.filepath)
|
||||||
else:
|
|
||||||
fetch_url(url, dest, ctx.ui.Progress)
|
|
||||||
else:
|
else:
|
||||||
ctx.ui.info(_('%s [cached]') % url.filename())
|
ctx.ui.info(_('%s [cached]') % url.filename())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user