xbps_configure_pkg: simplify and remove "version" arg (API change).
The "version" argument (being optional) clearly is not needed and it can be fully removed. This simplifies the internal implementation as well as the API.
This commit is contained in:
@ -244,8 +244,7 @@ xbps_transaction_commit(void)
|
||||
/*
|
||||
* Reconfigure pending package.
|
||||
*/
|
||||
rv = xbps_configure_pkg(pkgname, version,
|
||||
false, false, false);
|
||||
rv = xbps_configure_pkg(pkgname, false, false, false);
|
||||
if (rv != 0)
|
||||
goto out;
|
||||
} else {
|
||||
@ -326,7 +325,7 @@ xbps_transaction_commit(void)
|
||||
if (strcmp(tract, "update") == 0)
|
||||
update = true;
|
||||
|
||||
rv = xbps_configure_pkg(pkgname, version, false, update, false);
|
||||
rv = xbps_configure_pkg(pkgname, false, update, false);
|
||||
if (rv != 0)
|
||||
goto out;
|
||||
/*
|
||||
|
Reference in New Issue
Block a user