When removing a package and grepping ofr package references, don't let grep complain if profiles/package.mask doesn't exist.

This commit is contained in:
Nathan Phillip Brink 2010-09-20 10:20:52 -04:00
parent 0d1ac07ef7
commit 779394ac1f

View File

@ -465,7 +465,7 @@ main() {
say "${GREEN}Grepping for package references...${RESET}"
# -n is for line numbers, -C would be non-POSIX
if grep -n "${regex}" ${SC_ROOT}*/*/*.ebuild ${SC_ROOT}*/*/metadata.xml ${SC_ROOT}profiles/package.mask; then
if grep -n "${regex}" ${SC_ROOT}*/*/*.ebuild ${SC_ROOT}*/*/metadata.xml ${SC_ROOT}profiles/package.mask 2>/dev/null; then
echo
[ -n "${force}" ] || die 'Please remove the removed package references or use --force.'
else