From 172435bd7ede745e698ab60dbe2f9fd6be4ec98f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 4 Jul 2012 12:59:40 +0200 Subject: [PATCH] xbps_check_is_installed_pkg_by_pattern: do not reset errno, leave it as is. --- NEWS | 4 ++++ include/xbps_api.h | 4 ++-- lib/util.c | 4 +--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index ff6a2ec8..591bd926 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +xbps-0.16.3 (2012-07-04): + + * libxbps: fixed a regression in 0.16.2. + xbps-0.16.2 (2012-07-04): * libxbps: fixed 2 bugs while updating packages. diff --git a/include/xbps_api.h b/include/xbps_api.h index e3d383eb..6398c611 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -56,8 +56,8 @@ */ #define XBPS_PKGINDEX_VERSION "1.5" -#define XBPS_API_VERSION "20120704" -#define XBPS_VERSION "0.16.2" +#define XBPS_API_VERSION "20120704-1" +#define XBPS_VERSION "0.16.3" /** * @def XBPS_RELVER diff --git a/lib/util.c b/lib/util.c index 79eb67b6..c19e5e2d 100644 --- a/lib/util.c +++ b/lib/util.c @@ -72,10 +72,8 @@ xbps_check_is_installed_pkg_by_pattern(struct xbps_handle *xhp, if (dict == NULL) { dict = xbps_find_pkg_dict_installed(xhp, pattern, true); if (dict == NULL) { - if (errno == ENOENT) { - errno = 0; + if (errno == ENOENT) return 0; /* not installed */ - } return -1; /* error */ } }