From 09370643f180802d27d67ec513f94cfcde5193bd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 30 Jun 2011 13:45:11 +0200 Subject: [PATCH] xbps-src: [install_pkg_from_repos] handle 2nd ENOENT. --- xbps-src/shutils/builddep_funcs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xbps-src/shutils/builddep_funcs.sh b/xbps-src/shutils/builddep_funcs.sh index ef29205796..88b88bfaf2 100644 --- a/xbps-src/shutils/builddep_funcs.sh +++ b/xbps-src/shutils/builddep_funcs.sh @@ -45,9 +45,9 @@ install_pkg_from_repos() # package not found (ENOENT), try to workaround it if there # are extra double quotes. ${cmd} "$pkg" >${wrksrc}/.xbps_install_dependency_${pkgdepname}.log 2>&1 - if [ $? -ne 0 -a $? -ne 6 ]; then - msg_red "Please see ${wrksrc}/.xbps_install_${pkgdepname}.log to see what went wrong!\n" - msg_error "'${pkgname}': failed to install '${pkg}' required dependencies!\n" + if [ $? -ne 0 -a $? -ne 6 -a $? -ne 2 ]; then + msg_red "'${pkgname}': failed to install '${pkg}' dependency!\n" + msg_error "Please see ${wrksrc}/.xbps_install_${pkgdepname}.log to see what went wrong!\n" fi fi