This was broken by 6bcf194449, which caused the result of the check to be ignored (since xargs will return a non-zero exit status if *any* grep doesn't find a match).
6bcf194449
__targetPackages
targetPackages