xbps: fix inverted test in latest patch.

This commit is contained in:
Juan RP 2013-02-02 14:47:04 +01:00
parent fa1e886443
commit fcf4486158
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ index dd07677..658fdd6 100644
(pkgd = xbps_pkgdb_get_virtualpkg(xhp, cfpkg))) {
prop_dictionary_get_cstring_nocopy(pkgd,
"pkgver", &pkgver);
+ if (strcmp(pkgver, repopkgver))
+ if (strcmp(pkgver, repopkgver) == 0)
+ continue;
+
xbps_dbg_printf(xhp, "found conflicting installed "
@ -27,7 +27,7 @@ index dd07677..658fdd6 100644
(pkgd = xbps_find_virtualpkg_in_array(xhp, unsorted, cfpkg))) {
prop_dictionary_get_cstring_nocopy(pkgd,
"pkgver", &pkgver);
+ if (strcmp(pkgver, repopkgver))
+ if (strcmp(pkgver, repopkgver) == 0)
+ continue;
+
xbps_dbg_printf(xhp, "found conflicting pkgs in "

View File

@ -1,7 +1,7 @@
# Template file for 'xbps'
pkgname=xbps
version=0.20
revision=4
revision=5
build_style=configure
configure_args="--prefix=/ --exec-prefix=/usr --sbindir=/usr/sbin
--enable-tests --enable-static --enable-debug"