libxbps: take into account virtual-pkg settings in conf file when updating.

This commit is contained in:
Juan RP
2011-07-08 15:28:57 +02:00
parent ce9bc051e1
commit 5585b98ac6
2 changed files with 50 additions and 10 deletions

View File

@@ -129,6 +129,9 @@ repository_find_pkg(const char *pattern, const char *reason)
if (state == XBPS_PKG_STATE_UNPACKED)
reason = "configure";
else if (state == XBPS_PKG_STATE_NOT_INSTALLED)
reason = "install";
/*
* Set transaction obj in pkg dictionary to "install", "configure"
* or "update".