Use the repo list to find binary packages.

--HG--
extra : convert_revision : c35e25604d0e417115cd1c30d77d23fee3c39f92
This commit is contained in:
Juan RP 2008-12-24 12:34:04 +01:00
parent 4101025318
commit 9a0c175c18
3 changed files with 45 additions and 12 deletions

View file

@ -163,7 +163,6 @@ main(int argc, char **argv)
prop_dictionary_t dict;
repo_info_t *rinfo = NULL;
char dpkgidx[PATH_MAX], repolist[PATH_MAX];
int rv = 0;
if (argc < 2)
usage();
@ -273,7 +272,6 @@ main(int argc, char **argv)
if (argc != 3)
usage();
#if 0
dict = getrepolist_dict();
if (!xbps_callback_array_iter_in_dict(dict, "repository-list",
xbps_install_binary_pkg_from_repolist, argv[2])) {
@ -282,16 +280,6 @@ main(int argc, char **argv)
"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 {