Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=300e51dfc23094b8eeed15ee6ba05f773bcb7a9b
commit 300e51dfc23094b8eeed15ee6ba05f773bcb7a9b Author: Michel Hermier <[email protected]> Date: Fri Aug 1 14:02:09 2014 +0200 libpacman: Debug print cache time of about to download file. diff --git a/lib/libpacman/server.cpp b/lib/libpacman/server.cpp index 371927b..06ea5ac 100644 --- a/lib/libpacman/server.cpp +++ b/lib/libpacman/server.cpp @@ -255,9 +255,12 @@ pmdownloadsuccess_t _pacman_curl_download(pmcurldownloader_t *curldownloader, co curldownloader->previous_update = curldownloader->download.dst_begin; if(mtime1 && mtime2 && !curldownloader->m_handle->proxyhost) { + long cache_time = mtime1->toEpoch(); /* curl_easy_setopt require it as long */ + + _pacman_log(PM_LOG_DEBUG, _("setting cache time '%l' (epoch) for file: %s\n"), cache_time, url); curl_easy_setopt(curlHandle, CURLOPT_FILETIME, 1); curl_easy_setopt(curlHandle, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE); - curl_easy_setopt(curlHandle, CURLOPT_TIMEVALUE , (long)mtime1->m_value); + curl_easy_setopt(curlHandle, CURLOPT_TIMEVALUE, cache_time); outputFile = fopen(output,"wb"); } else { struct stat st; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
