From: graham.gower Date: Wed, 11 Nov 2009 02:10:49 +0000 (+0000) Subject: Don't try to rerun control scripts, problems caused by circular dependencies. X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=11c434b8019682a3e6f0f683fd14a6b69151956a;p=project%2Fopkg-lede.git Don't try to rerun control scripts, problems caused by circular dependencies. Symptoms of this problem are seeing the following when installing a package: opkg: (null): Bad address opkg: (null): Bad address git-svn-id: http://opkg.googlecode.com/svn/trunk@281 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index 4a1ff9a..15e15c7 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -910,6 +910,9 @@ int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade) if (conf->nodeps == 0) { err = satisfy_dependencies_for(conf, pkg); if (err) { return OPKG_INSTALL_ERR_DEPENDENCIES; } + if (pkg->state_status == SS_UNPACKED) + /* Circular dependency has installed it for us. */ + return 0; } replacees = pkg_vec_alloc();