skypher / paktahn

yaourt-style package manager/install helper for ArchLinux
http://bbs.archlinux.org/viewtopic.php?pid=600126
44 stars 10 forks source link

"pak -Su --aur" crashes when refreshing cache #69

Closed jbigler closed 12 years ago

jbigler commented 12 years ago

Version: 0.9.7.0 Architecture : x86_64

When I update my AUR packages using "pak -Su --aur" and several packages are upgraded paktahn will sometimes abort with the message:

==> Cache "local" is out of date, refreshing.
==> error opening #P"/var/lib/pacman/local/PREVIOUS_VERSION_OF_APP/desc": No such file or directory

This usually happens if there are several packages being upgraded by paktahn during the session, causing the session to take longer to finish. It eventually decides to update the cache while processing the list of packages. At this point it no longer sees the previous version of the first package which was updated during this session and crashes trying to open its "desc" file.

Particularly annoying is that the entire process must be run again, causing another download of all the source files and a high likelihood of another crash. To get around the problem I sometimes have to abort paktakn with Ctrl-C after updating the first package and then run the command again to start with the next package.

skypher commented 12 years ago

Cache updating needs to be inhibited during Su operation. I'm taking this.

skypher commented 12 years ago

https://github.com/skypher/paktahn/commit/2286eba7e2589ba86dee14cf2bee440fb8c43ce2 should fix this, though it is untested.

pielgrzym commented 12 years ago

Using aur/paktahn 0.9.7.0-1 and the problem still persists.

skypher commented 12 years ago

I don't think it is released yet...

pielgrzym commented 12 years ago

Sorry then :)

kingcons commented 12 years ago

Guys, sorry I've been so behind on this .Will get a release out in the next 48 hours.

pielgrzym commented 12 years ago

Thanks!