From 2c72c81db0f6b195ed9b7208127d310f6ce24143 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 25 Nov 2010 10:58:44 +0100 Subject: [PATCH] xbps-bin: always check if the there are missing deps regardless of the errno value. --- bin/xbps-bin/install.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/xbps-bin/install.c b/bin/xbps-bin/install.c index c780b833..740c5186 100644 --- a/bin/xbps-bin/install.c +++ b/bin/xbps-bin/install.c @@ -616,11 +616,11 @@ xbps_exec_transaction(bool yes) strerror(errno)); goto out; } - if (errno == ENOENT) { - /* - * Bail out if there are unresolved deps. - */ - array = prop_dictionary_get(trans->dict, "missing_deps"); + /* + * Bail out if there are unresolved deps. + */ + array = prop_dictionary_get(trans->dict, "missing_deps"); + if (array && prop_array_count(array) > 0) { show_missing_deps(trans->dict); goto out; }