-/* opkg_upgrade.c - the itsy package management system
+/* opkg_upgrade.c - the opkg package management system
Carl D. Worth
Copyright (C) 2001 University of Southern California
return 0;
}
- new = pkg_hash_fetch_best_installation_candidate_by_name(conf, old->name);
+ new = pkg_hash_fetch_best_installation_candidate_by_name(conf, old->name, NULL);
if (new == NULL) {
old_version = pkg_version_str_alloc(old);
opkg_message(conf, OPKG_NOTICE,
old->state_want = SW_DEINSTALL;
}
+ free(old_version);
+ free(new_version);
new->state_flag |= SF_USER;
return opkg_install_pkg(conf, new,1);
}