matchesPkg: match against the pkg Id (foo-1.0) not just the package name (foo)