cloudmatrix / esky

an auto-update framework for frozen python apps
BSD 3-Clause "New" or "Revised" License
363 stars 74 forks source link

Patch doesn't apply py3.5 linux #113

Closed JPFrancoia closed 6 years ago

JPFrancoia commented 8 years ago

Hi,

I have a little problem with the patches. When I try to apply a patch, I get this error:

Traceback (most recent call last):
  File "/home/djipey/informatique/python/ChemBrows/updater.py", line 59, in run
    self.app.auto_update()
  File "/usr/lib/python3.5/site-packages/esky/__init__.py", line 626, in auto_update
    self._do_auto_update(version, callback)
  File "/usr/lib/python3.5/site-packages/esky/__init__.py", line 674, in _do_auto_update
    self.fetch_version(version, callback)
  File "/usr/lib/python3.5/site-packages/esky/__init__.py", line 716, in fetch_version
    loc = self.version_finder.fetch_version(self, version, callback)
  File "/usr/lib/python3.5/site-packages/esky/finder.py", line 80, in fetch_version
    for status in self.fetch_version_iter(app,version):
  File "/usr/lib/python3.5/site-packages/esky/finder.py", line 230, in fetch_version_iter
    self._prepare_version(app,version,local_path)
  File "/usr/lib/python3.5/site-packages/esky/finder.py", line 332, in _prepare_version
    apply_patch(uppath,f)
  File "/usr/lib/python3.5/site-packages/esky/patch.py", line 294, in apply_patch
    Patcher(target,stream,**kwds).patch()
  File "/usr/lib/python3.5/site-packages/esky/patch.py", line 569, in patch
    getattr(self,"_do_" + _COMMANDS[cmd])()
IndexError: list index out of range

I started myprogram_1.0, and the patch myprogram_1.1_from1.0.patch is present at http://localhost:8000

Also, applying updates from the full zip completely works, either with a local and a remote server.

EDIT:

This is from Linux, using cx_Freeze

timeyyy commented 8 years ago

The Index Error is raised when applying patches from remote urls. I'd like to find out why before merging the patch though.

rfk commented 6 years ago

Thanks for reaching out. Unfortunately this project is no longer actively maintained, so I'm going to move it into archive mode:

https://rfk.id.au/blog/entry/archiving-open-source-projects/