aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2003-09-29 01:55:08 +0000
committerJason Woodward2003-09-29 01:55:08 +0000
commit92376622f4e73821b5d01c115912500ee7056744 (patch)
tree0b71d160184236221ceb1966cfda7363dc143bda
parentb787b3422a8f8bead6d9232218b0d83212cb7a28 (diff)
downloadslapt-get-92376622f4e73821b5d01c115912500ee7056744.tar.gz
removed extra warning printf, and exit if download_data fails
-rw-r--r--src/curl.c1
-rw-r--r--src/package.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/src/curl.c b/src/curl.c
index 733eeea..518b042 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -37,7 +37,6 @@ void download_data(FILE *fh,const char *url){
if( (response = curl_easy_perform(ch)) != 0 ){
fprintf(stderr,"failed to download: %s\n",curl_err_buff);
- exit(1);
}
/* curl_easy_cleanup(ch); */
curl_free(ch);
diff --git a/src/package.c b/src/package.c
index 35bcc53..e6b5ff2 100644
--- a/src/package.c
+++ b/src/package.c
@@ -441,7 +441,6 @@ int install_pkg(const rc_config *global_config,pkg_info_t *pkg){
pkg_file_name = download_pkg(global_config,pkg);
if( pkg_file_name == NULL ){
- fprintf(stderr,"Skipping %s\n",pkg->name);
return -1;
}
@@ -491,7 +490,6 @@ int upgrade_pkg(const rc_config *global_config,pkg_info_t *pkg){
/* download it */
pkg_file_name = download_pkg(global_config,pkg);
if( pkg_file_name == NULL ){
- fprintf(stderr,"Skipping %s\n",pkg->name);
return -1;
}