Added basic support to update a single package via "xbps-bin update foo".
--HG-- extra : convert_revision : 7214ab270ccb57a327afeed94f6a2efc4738442d
This commit is contained in:
parent
7db36bf9e0
commit
54b6d87809
7 changed files with 174 additions and 65 deletions
|
@ -547,7 +547,7 @@ find_pkg_deps_from_repo(prop_dictionary_t repo, prop_dictionary_t pkg,
|
|||
}
|
||||
|
||||
int
|
||||
xbps_install_pkg_deps(const char *pkgname)
|
||||
xbps_install_pkg_deps(const char *pkgname, bool update)
|
||||
{
|
||||
prop_array_t required, missing;
|
||||
prop_object_t obj;
|
||||
|
@ -597,7 +597,7 @@ xbps_install_pkg_deps(const char *pkgname)
|
|||
* Install all required dependencies, previously sorted.
|
||||
*/
|
||||
while ((obj = prop_object_iterator_next(iter)) != NULL) {
|
||||
rv = xbps_install_binary_pkg_fini(NULL, obj);
|
||||
rv = xbps_install_binary_pkg_fini(NULL, obj, update);
|
||||
if (rv != 0)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue