xbps-repo: print error if pkg-index file cannot be fetched.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091122060446-sc4na9qa2k2bk5f6
This commit is contained in:
Juan RP
2009-11-22 07:04:46 +01:00
parent 625b3df820
commit 4f80bddbb2
2 changed files with 5 additions and 2 deletions

View File

@ -297,7 +297,7 @@ xbps_fetch_file(const char *uri, const char *outputdir, bool refetch,
printf("url_stat.mtime: %s\n", print_time(&url_st.mtime));
#endif
if (fio == NULL && fetchLastErrCode != FETCH_OK) {
if (restart && fetchLastErrCode == FETCH_UNAVAIL) {
if (!refetch && restart && fetchLastErrCode == FETCH_UNAVAIL) {
/*
* In HTTP when 416 is returned and length==0
* means that local and remote file size match.