+2008-09-17: Paul Varner <fuzzyray@gentoo.org>
+ * euse: Fix check_sanity function to use get_all_make_defaults
+ function when checking for the make.defaults files in the profile.
+ (Bug #233651)
+
2008-09-03: Paul Varner <fuzzyray@gentoo.org>
* equery: Fix depgraph function to print out dependencies that don't
resolve to a package (Bug #236492)
check_sanity() {
# file permission tests
local descdir
+ local make_defaults
descdir="$(get_portdir)/profiles"
[ ! -d "${descdir}" ] && error "${descdir} does not exist or is not a directory"
[ ! -r "${descdir}/use.desc" ] && error "${descdir}/use.desc is not readable"
[ ! -r "${descdir}/use.local.desc" ] && error "${descdir}/use.local.desc is not readable"
- [ ! -r "$(get_make_defaults)" ] && error "$(get_make_defaults) is not readable"
+ for make_defaults in $(get_all_make_defaults); do
+ [ ! -r "$make_defaults" ] && error "$_make_defaults is not readable"
+ done
+# [ ! -r "$(get_make_defaults)" ] && error "$(get_make_defaults) is not readable"
[ "${MODE}" == "modify" -a ! -w "${MAKE_CONF_PATH}" ] && error ""${MAKE_CONF_PATH}" is not writable"
}