lib/transaction_ops.c: detect updates when an exact pkg version is set.
This commit is contained in:
parent
e4ff957e42
commit
30ea08e605
@ -74,7 +74,12 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool reinstall)
|
||||
/*
|
||||
* Find out if pkg is installed first.
|
||||
*/
|
||||
if ((pkgname = xbps_pkg_name(pkg))) {
|
||||
pkg_pkgdb = xbps_pkgdb_get_pkg(xhp, pkgname);
|
||||
free(pkgname);
|
||||
} else {
|
||||
pkg_pkgdb = xbps_pkgdb_get_pkg(xhp, pkg);
|
||||
}
|
||||
/*
|
||||
* Find out if the pkg has been found in repository pool.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user