Fix invalid implementation of package manager CAPI