summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r--libopkg/opkg_download.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 7dc965b..ee8dc08 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -278,7 +278,6 @@ int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name
err = pkg_init_from_file(pkg, tmp_file);
if (err)
return err;
- pkg->local_filename = strdup(tmp_file);
free(tmp_file);
free(file_basec);
@@ -290,7 +289,6 @@ int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name
err = pkg_init_from_file(pkg, url);
if (err)
return err;
- pkg->local_filename = strdup(url);
opkg_message(conf, OPKG_DEBUG2, "Package %s provided by hand (%s).\n", pkg->name,pkg->local_filename);
pkg->provided_by_hand = 1;