err = pkg_init_from_file(pkg, tmp_file);
if (err)
return err;
- pkg->local_filename = strdup(tmp_file);
free(tmp_file);
free(file_basec);
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;
pkg = hash_insert_pkg(&conf->pkg_hash, pkg, 1,conf);
old = pkg_hash_fetch_installed_by_name(&conf->pkg_hash, pkg->name);
- pkg->local_filename = strdup(filename);
-
if (old) {
old_version = pkg_version_str_alloc(old);
new_version = pkg_version_str_alloc(pkg);