Avoid invalidating package cache when only verifying

May need a per-package-method flag, as some package managers could
conceivably add or remove packages as part of a verify operation.
Merge pull request #479 from baptr/pkg-verify_invalidate

Avoid invalidating package cache when only verifying