Fixes #4145: correct cache invalidation for rpmpackage management