lib/transaction_ops.c: minor optimization.
This commit is contained in:
parent
2aa844f3f7
commit
0fc297a471
@ -109,7 +109,6 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool reinstall,
|
|||||||
}
|
}
|
||||||
|
|
||||||
xbps_dictionary_get_cstring_nocopy(pkg_repod, "pkgver", &repopkgver);
|
xbps_dictionary_get_cstring_nocopy(pkg_repod, "pkgver", &repopkgver);
|
||||||
xbps_dictionary_get_cstring_nocopy(pkg_repod, "repository", &repoloc);
|
|
||||||
|
|
||||||
if (action == TRANS_UPDATE) {
|
if (action == TRANS_UPDATE) {
|
||||||
/*
|
/*
|
||||||
@ -120,6 +119,8 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool reinstall,
|
|||||||
"pkgver", &instpkgver);
|
"pkgver", &instpkgver);
|
||||||
if (xbps_cmpver(repopkgver, instpkgver) <= 0 &&
|
if (xbps_cmpver(repopkgver, instpkgver) <= 0 &&
|
||||||
!xbps_pkg_reverts(pkg_repod, instpkgver)) {
|
!xbps_pkg_reverts(pkg_repod, instpkgver)) {
|
||||||
|
xbps_dictionary_get_cstring_nocopy(pkg_repod,
|
||||||
|
"repository", &repoloc);
|
||||||
xbps_dbg_printf(xhp, "[rpool] Skipping `%s' "
|
xbps_dbg_printf(xhp, "[rpool] Skipping `%s' "
|
||||||
"(installed: %s) from repository `%s'\n",
|
"(installed: %s) from repository `%s'\n",
|
||||||
repopkgver, instpkgver, repoloc);
|
repopkgver, instpkgver, repoloc);
|
||||||
|
Loading…
Reference in New Issue
Block a user