New configuration scheme changes, round 2 (virtual pkgs).

- XBPS now expects to read individual virtual pkg settings from
  .plist files in PREFIX/etc/xbps/virtualpkg.d.wants.

This really implements the missing part in issue #12 in
googlecode: http://code.google.com/p/xbps/issues/detail?id=12
This commit is contained in:
Juan RP
2011-10-17 14:24:30 +02:00
parent 5642ffa86e
commit 08f7169eff
7 changed files with 127 additions and 6 deletions

View File

@@ -164,6 +164,9 @@ xbps_init(struct xbps_handle *xh)
if (prop_object_type(xh->conffile) == PROP_TYPE_STRING)
prop_object_release(xh->conffile);
/* Initialize virtual package settings */
xbps_init_virtual_pkgs(xhp);
return 0;
}
@@ -180,6 +183,8 @@ xbps_end(struct xbps_handle *xh)
prop_object_release(xh->rootdir);
if (prop_object_type(xh->cachedir) == PROP_TYPE_STRING)
prop_object_release(xh->cachedir);
if (prop_object_type(xh->virtualpkgs_array) == PROP_TYPE_ARRAY)
prop_object_release(xh->virtualpkgs_array);
if (xh->xfcd != NULL)
free(xh->xfcd);
if (xh->xucd != NULL)