summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2005-03-13 15:34:54 +0000
committerJason Woodward2005-03-13 15:34:54 +0000
commit5703aa462f1fd3bcca46ba0b450f57704900bbdf (patch)
treeb942e9ff4583e3c555e642800edc185485bad24a
parentbefcc493bef47c873c11072cb2bee313c9c6f471 (diff)
downloadslapt-get-5703aa462f1fd3bcca46ba0b450f57704900bbdf.tar.gz
added CURLOPT_FILETIME to libcurl calls so that ftp transfers have the modification date for checking whether the source is new or not (as opposed to the file size).
-rw-r--r--ChangeLog5
-rw-r--r--src/curl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 78b677b..9b834eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
-0.9.9j Mar 10, 2005
+0.9.9j Mar 13, 2005
+ * added CURLOPT_FILETIME to libcurl calls so that ftp transfers have the
+ modification date for checking whether the source is new or not (as
+ opposed to the file size).
* added Slovenian translation by Emil Novak (emilnovak at gmail dot com)
* added --available option to only show packages available from the current
sources. --list shows available and installed. --installed shows only
diff --git a/src/curl.c b/src/curl.c
index 5d056c2..15d3ca4 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -43,6 +43,7 @@ int download_data(FILE *fh,const char *url,size_t bytes,const rc_config *global_
#ifdef CURLOPT_HTTPAUTH
curl_easy_setopt(ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
#endif
+ curl_easy_setopt(ch, CURLOPT_FILETIME, 1 );
headers = curl_slist_append(headers, "Pragma: "); /* override no-cache */
@@ -135,6 +136,7 @@ char *head_request(const char *url){
#ifdef CURLOPT_HTTPAUTH
curl_easy_setopt(ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
#endif
+ curl_easy_setopt(ch, CURLOPT_FILETIME, 1 );
headers = curl_slist_append(headers, "Pragma: "); /* override no-cache */