düzgün hali
This commit is contained in:
+6
-4
@@ -69,9 +69,6 @@ class Package:
|
|||||||
else:
|
else:
|
||||||
installed = False
|
installed = False
|
||||||
|
|
||||||
# FIXME: exists is not enough, also sha1sum check needed
|
|
||||||
# when implemented in pisi-index.xml
|
|
||||||
if not exists(self.filepath):
|
|
||||||
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):
|
||||||
@@ -82,8 +79,13 @@ class Package:
|
|||||||
ctx.ui.error(_('XDelta %s: not exists') % xdelta_url)
|
ctx.ui.error(_('XDelta %s: not exists') % xdelta_url)
|
||||||
else:
|
else:
|
||||||
# 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:
|
||||||
|
util.generate_pisi_file(xdelta_fn, current_fn, self.filepath)
|
||||||
|
|
||||||
|
# FIXME: exists is not enough, also sha1sum check needed
|
||||||
|
# when implemented in pisi-index.xml
|
||||||
|
if not exists(self.filepath):
|
||||||
fetch_url(url, dest, ctx.ui.Progress)
|
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