From 4136443a3a7413ccaa230e023a37084ac1f4d570 Mon Sep 17 00:00:00 2001 From: pixdamix@gmail.com Date: Thu, 22 Nov 2012 04:18:02 -0500 Subject: detect circular dependencies Add logic to detect circular dependencies. If we see any dependency from any given parent twice, ignore it the second time and print a notice message that we did so. Signed-off-by: Richard Purdie Signed-off-by: Martin Jansa git-svn-id: http://opkg.googlecode.com/svn/trunk@641 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/pkg_depends.h') diff --git a/libopkg/pkg_depends.h b/libopkg/pkg_depends.h index b8072e2..ca0801f 100644 --- a/libopkg/pkg_depends.h +++ b/libopkg/pkg_depends.h @@ -87,5 +87,6 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg); int pkg_dependence_satisfiable(depend_t *depend); int pkg_dependence_satisfied(depend_t *depend); const char* constraint_to_str(enum version_constraint c); +int is_pkg_in_pkg_vec(pkg_vec_t * vec, pkg_t * pkg); #endif -- cgit v0.9.1