Working dependency handling for binary packages.
--HG-- extra : convert_revision : d0ff56b524efba53b11b7635972b03feaaeb889a
This commit is contained in:
parent
fa3b59b246
commit
4101025318
7 changed files with 127 additions and 86 deletions
|
@ -273,9 +273,27 @@ main(int argc, char **argv)
|
|||
if (argc != 3)
|
||||
usage();
|
||||
|
||||
rv = xbps_install_binary_pkg(argv[2], "/home/juan/root_xbps");
|
||||
#if 0
|
||||
dict = getrepolist_dict();
|
||||
if (!xbps_callback_array_iter_in_dict(dict, "repository-list",
|
||||
xbps_install_binary_pkg_from_repolist, argv[2])) {
|
||||
prop_object_release(dict);
|
||||
printf("ERROR: unable to find a binary package "
|
||||
"for %s.\n", argv[2]);
|
||||
exit(EINVAL);
|
||||
}
|
||||
#endif
|
||||
|
||||
dict = prop_dictionary_internalize_from_file("/storage/xbps/binpkgs/pkg-index.plist");
|
||||
if (dict == NULL)
|
||||
exit(EINVAL);
|
||||
|
||||
rv = xbps_install_binary_pkg(dict, argv[2],
|
||||
"/home/juan/root_xbps");
|
||||
if (rv)
|
||||
exit(rv);
|
||||
prop_object_release(dict);
|
||||
|
||||
} else {
|
||||
usage();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue