xbps_fetch_file: erm fix previous, FETH_UNCHANGED is the correct one.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091031105541-8v2qt83jxazsxean
This commit is contained in:
Juan RP 2009-10-31 11:55:41 +01:00
parent a9b7ffa94a
commit 10e76c6420

View File

@ -247,8 +247,7 @@ xbps_fetch_file(const char *uri, const char *outputdir, const char *flags)
* and If-Modified-Since is unchanged, we are done.
*/
if (url->offset == st.st_size &&
fetchLastErrCode == FETCH_UNCHANGED ||
fetchLastErrCode == HTTP_NOT_MODIFIED)
fetchLastErrCode == FETCH_UNCHANGED)
goto out;
rv = fetchLastErrCode;