mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 10:22:56 +02:00
xbps-bin: don't overwrite "automatic-install" obj in autoupdate.
--HG-- extra : convert_revision : 3e3783b073d1daf3d38f68005ec6ec3aa8757841
This commit is contained in:
parent
ccffbaccf7
commit
d8bc610313
1 changed files with 8 additions and 2 deletions
|
@ -280,14 +280,14 @@ exec_transaction(struct transaction *trans)
|
||||||
prop_object_t obj;
|
prop_object_t obj;
|
||||||
const char *pkgname, *version, *instver, *filename;
|
const char *pkgname, *version, *instver, *filename;
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
bool essential, isdep;
|
bool essential, isdep, autoinst;
|
||||||
pkg_state_t state = 0;
|
pkg_state_t state = 0;
|
||||||
|
|
||||||
assert(trans != NULL);
|
assert(trans != NULL);
|
||||||
assert(trans->dict != NULL);
|
assert(trans->dict != NULL);
|
||||||
assert(trans->iter != NULL);
|
assert(trans->iter != NULL);
|
||||||
|
|
||||||
essential = isdep = false;
|
essential = isdep = autoinst = false;
|
||||||
/*
|
/*
|
||||||
* Show download/installed size for the transaction.
|
* Show download/installed size for the transaction.
|
||||||
*/
|
*/
|
||||||
|
@ -376,6 +376,12 @@ exec_transaction(struct transaction *trans)
|
||||||
/*
|
/*
|
||||||
* Register binary package.
|
* Register binary package.
|
||||||
*/
|
*/
|
||||||
|
if (trans->type == TRANS_ALL) {
|
||||||
|
prop_dictionary_get_bool(obj, "automatic-install",
|
||||||
|
&autoinst);
|
||||||
|
isdep = autoinst;
|
||||||
|
}
|
||||||
|
|
||||||
if ((rv = xbps_register_pkg(obj, isdep)) != 0) {
|
if ((rv = xbps_register_pkg(obj, isdep)) != 0) {
|
||||||
printf("error: registering %s-%s! (%s)\n",
|
printf("error: registering %s-%s! (%s)\n",
|
||||||
pkgname, version, strerror(rv));
|
pkgname, version, strerror(rv));
|
||||||
|
|
Loading…
Add table
Reference in a new issue