--- trunk/depend-tools/discover_libs.sh 2006/02/20 00:14:24 331 +++ trunk/depend-tools/discover_libs.sh 2006/03/27 21:21:04 359 @@ -56,6 +56,11 @@ for i in ${ALL_DEPS} do pkg=$(/sbin/magequery -f "${i}") + if [[ -z ${pkg} ]] + then + NO_PACKAGE_FOUND="${NO_PACKAGE_FOUND}:${i} -> no pkg found." + continue + fi for z in ${pkg} do if not_in_list "${ALL_PACKAGES}" "${z}" @@ -73,3 +78,17 @@ echo "${i}" done | sort echo + +if [[ ${PRINT_NOT_FOUND} = true ]] +then + echo + echo "Non resolved libs:" + OLDIFS="${IFS}" + IFS=: + for i in ${NO_PACKAGE_FOUND} + do + echo ${i} + done | sort + IFS="${OLDIFS}" + echo +fi