Make sure recursion only happens with requires

The function recursive_fill_list() is designed to descend lists of
packages, so it only makes sense to use with Requires and
Requires.private. Ensure it to make later code additions simpler.
This commit is contained in:
Dan Nicholson 2012-05-09 05:51:32 -07:00
parent 6b07296902
commit 02ca585fa6

6
pkg.c
View file

@ -574,6 +574,12 @@ recursive_fill_list (Package *pkg, GetListFunc func, GSList **listp)
{
GSList *tmp;
/*
* This function should only be called to resolve Requires or
* Requires.private.
*/
g_assert (func == get_requires || func == get_requires_private);
fill_one_level (pkg, func, listp);
tmp = (*func) (pkg);