xbps-bin: while updating a package, install reqdeps properly.
--HG-- extra : convert_revision : 4bf0e7965a802a0f30e90d1ec1c0eb94bdbfe1d3
This commit is contained in:
parent
695d307a25
commit
993c2790a5
1 changed files with 5 additions and 2 deletions
|
@ -78,7 +78,7 @@ xbps_install_pkg(const char *pkg, bool force, bool update)
|
||||||
const char *pkgname, *version;
|
const char *pkgname, *version;
|
||||||
char size[64];
|
char size[64];
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
bool pkg_is_dep, first = false;
|
bool pkg_is_dep, doup = false, first = false;
|
||||||
|
|
||||||
assert(props != NULL);
|
assert(props != NULL);
|
||||||
|
|
||||||
|
@ -260,7 +260,10 @@ xbps_install_pkg(const char *pkg, bool force, bool update)
|
||||||
/*
|
/*
|
||||||
* Register binary package.
|
* Register binary package.
|
||||||
*/
|
*/
|
||||||
if ((rv = xbps_register_pkg(obj, update, pkg_is_dep)) != 0) {
|
if (update && !pkg_is_dep)
|
||||||
|
doup = true;
|
||||||
|
|
||||||
|
if ((rv = xbps_register_pkg(obj, doup, pkg_is_dep)) != 0) {
|
||||||
printf("error: registering %s-%s! (%s)\n",
|
printf("error: registering %s-%s! (%s)\n",
|
||||||
pkgname, version, strerror(rv));
|
pkgname, version, strerror(rv));
|
||||||
prop_object_release(props);
|
prop_object_release(props);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue