--- a/linux-info.eclass 2011-12-13 02:01:37.000000000 +0400 +++ b/linux-info.eclass 2012-06-25 13:53:55.259008862 +0400 @@ -237,7 +237,7 @@ # It returns true if .config exists in a build directory otherwise false linux_config_src_exists() { export _LINUX_CONFIG_EXISTS_DONE=1 - [ -s "${KV_OUT_DIR}/.config" ] + [ -n "${KV_OUT_DIR}" -a -f "${KV_OUT_DIR}/.config" ] } # @FUNCTION: linux_config_bin_exists @@ -246,7 +246,7 @@ # It returns true if .config exists in /proc, otherwise false linux_config_bin_exists() { export _LINUX_CONFIG_EXISTS_DONE=1 - [ -s "/proc/config.gz" ] + [ -f "/proc/config.gz" ] } # @FUNCTION: linux_config_exists