From b5023b1788eb78b8c1d521e28dd89c540cf92773 Mon Sep 17 00:00:00 2001 From: pixdamix Date: Mon, 23 Nov 2009 03:28:58 -0500 Subject: Allow to install a package from a read-only dir This patch allows to install a package which is located on a readonly filesystem or folder by moving the control file into the tmp_dir directory git-svn-id: http://opkg.googlecode.com/svn/trunk@351 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_download.c') diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index 953627b..4789249 100644 --- a/libopkg/opkg_download.c +++ b/libopkg/opkg_download.c @@ -276,7 +276,7 @@ int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name if (err) return err; - err = pkg_init_from_file(pkg, tmp_file); + err = pkg_init_from_file(conf, pkg, tmp_file); if (err) return err; @@ -287,7 +287,7 @@ int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name || strcmp(&url[strlen(url) - 4], IPKG_PKG_EXTENSION) == 0 || strcmp(&url[strlen(url) - 4], DPKG_PKG_EXTENSION) == 0) { - err = pkg_init_from_file(pkg, url); + err = pkg_init_from_file(conf, pkg, url); if (err) return err; opkg_message(conf, OPKG_DEBUG2, "Package %s provided by hand (%s).\n", pkg->name,pkg->local_filename); -- cgit v0.9.1