braydonf / gpk

A decentralized and secure package manager.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

install: fatal: destination path already exists and is not an empty directory

tuxcanfly opened this issue · comments

When install is run on package and it fails (most common reason being missing gpg keys), the next time it is run, it fails with this error. Would be nice to either

a) clean cache when install fails or

b) pre-emptively clear cache when installing new package or

c) prompt user to clean cache and re-download package

If it's signed, there will be a different hash. So perhaps it just needs to give the same error, unable to verify.

Actually, if there is a missing public key it would end up being the same. If the unverified path already exists, no need to fetch it again, just try verifying again.