build: fix IGNORE_ERRORS for sources packages that match both 'y' and 'm'