Some changes to know if a file was downloaded successfully or not.
Improved xbps-repo sync/add and xbps-fetch to print informative messages when a transfer was not necessary because local/remote size and/or mtime matched. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091124050326-owez7140fdxwepuk
This commit is contained in:
@@ -177,9 +177,9 @@ download_package_list(prop_object_iterator_t iter)
|
||||
rv = xbps_fetch_file(binfile, savedir, false, NULL);
|
||||
free(savedir);
|
||||
free(binfile);
|
||||
if (rv != 0) {
|
||||
if (rv == -1) {
|
||||
printf("Couldn't download %s from %s (%s)\n",
|
||||
filename, repoloc, strerror(rv));
|
||||
filename, repoloc, xbps_fetch_error_string());
|
||||
free(repoloc_trans);
|
||||
return errno;
|
||||
}
|
||||
|
Reference in New Issue
Block a user