kitsunyan / pakku

Pacman wrapper with AUR support
GNU General Public License v3.0
130 stars 8 forks source link

pakku just decided to remove itself after upgrade #6

Closed hedgehog1029 closed 6 years ago

hedgehog1029 commented 6 years ago

Not sure if this is an issue or not, but it appears pakku scheduled itself for removal right after upgrading:

(4/4) upgrading pakku                                                                                                                          [########################################################################################] 100%
:: Running post-transaction hooks...
(1/4) Updating icon theme caches...
(2/4) Arming ConditionNeedsUpdate...
(3/4) Updating the desktop file MIME type cache...
(4/4) Updating the MIME type database...
:: Removing build dependencies...
checking dependencies...

Packages (1) pakku-0.7-1

Total Removed Size:  0.55 MiB

:: Do you want to remove these packages? [Y/n] 

0.7-1 was also the version I was trying to upgrade to. I don't know where to look for extended logs but I'll happily hastebin them if you tell me?

kitsunyan commented 6 years ago

My bad. It seems that I'm incorrectly handling --asexplicit and --asdeps args. After upgrading, pakku becomes installed as dependency even if it was explicitly installed before. Actually, it can affect any package that was explicitly installed before.

hedgehog1029 commented 6 years ago

forgot to mention, this happened with a regular -Syu

kitsunyan commented 6 years ago

Should work correctly now. https://github.com/kitsunyan/pakku/commit/5460261110d5766e25fa086c5f52193070c60583