Improve download code, as well as fixing refetching when syncing to a
remote package index. Bump XBPS_RELVER to 20091118. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091118062814-3pqbs9n1797einhm
This commit is contained in:
@@ -164,7 +164,7 @@ download_package_list(prop_object_iterator_t iter)
|
||||
}
|
||||
printf("Downloading %s-%s binary package ...\n",
|
||||
pkgname, version);
|
||||
rv = xbps_fetch_file(binfile, savedir, NULL);
|
||||
rv = xbps_fetch_file(binfile, savedir, false, NULL);
|
||||
free(savedir);
|
||||
free(binfile);
|
||||
if (rv != 0) {
|
||||
|
||||
@@ -32,7 +32,7 @@ main(int argc, char **argv)
|
||||
if (argc != 1)
|
||||
usage();
|
||||
|
||||
rv = xbps_fetch_file(argv[0], ".", flags);
|
||||
rv = xbps_fetch_file(argv[0], ".", false, flags);
|
||||
if (rv != 0) {
|
||||
printf("%s: %s\n", argv[0], xbps_fetch_error_string());
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
Reference in New Issue
Block a user