summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:02:42 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:02:42 (EST)
commit10ead572b6cb9e92de05206867e0727220256b46 (patch)
tree56a8af792d0d2abb20254737101401da7d412f0d /libopkg
parent3e2987bc0d65a6cbd29bd7a0ff96d3ce0926ddcd (diff)
opkg: remove some "#if 0" code
git-svn-id: http://opkg.googlecode.com/svn/trunk@59 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg.h4
-rw-r--r--libopkg/opkg_download.c25
2 files changed, 0 insertions, 29 deletions
diff --git a/libopkg/opkg.h b/libopkg/opkg.h
index b6a793d..1e8baea 100644
--- a/libopkg/opkg.h
+++ b/libopkg/opkg.h
@@ -22,10 +22,6 @@
#include "config.h"
#endif
-#if 0
-#define OPKG_DEBUG_NO_TMP_CLEANUP
-#endif
-
#include "includes.h"
#include "opkg_conf.h"
#include "opkg_message.h"
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 27b9d2e..4dab809 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -121,31 +121,6 @@ int opkg_download(opkg_conf_t *conf, const char *src, const char *dest_file_name
setenv("no_proxy", conf->no_proxy, 1);
}
- /* XXX: BUG rewrite to use execvp or else busybox's internal wget -Jamey 7/23/2002 */
-#if 0
- sprintf_alloc(&cmd, "wget --passive-ftp %s %s%s %s%s %s -P %s %s",
- (conf->http_proxy || conf->ftp_proxy) ? "--proxy=on" : "",
- conf->proxy_user ? "--proxy-user=" : "",
- conf->proxy_user ? conf->proxy_user : "",
- conf->proxy_passwd ? "--proxy-passwd=" : "",
- conf->proxy_passwd ? conf->proxy_passwd : "",
- conf->verbose_wget ? "" : "-q",
- conf->tmp_dir,
- src);
- err = xsystem(cmd);
- if (err) {
- if (err != -1) {
- opkg_message(conf,OPKG_ERROR, "%s: ERROR: Command failed with return value %d: `%s'\n",
- __FUNCTION__, err, cmd);
- }
- unlink(tmp_file_location);
- free(tmp_file_location);
- free(src_basec);
- free(cmd);
- return EINVAL;
- }
- free(cmd);
-#endif
CURL *curl;
CURLcode res;
FILE * file = fopen (tmp_file_location, "w");