[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [RFC] managing dependencies with levels



On Fri, May 18, 2001 at 02:18:29PM +0200, Thierry Laronde wrote:
> If a Level is not set, the Level computed which depends on that level is not
> set neither :
> 
> Level=
> maxlevel=
> for package in dependencies
>   do
>     level=`get_Level $package`
> 	if [ -z "$level" ]
> 	  then
> 	    echo "Package has unmet dependencies"

Hum... well add a maxlevel= [but this is not a script, just the idea ;)]
> 		break;
> 	  else
> 	    maxlevel=`max $maxlevel $level`
> 	fi
>   done
> [ ! -z "$maxlevel" ] && Level=$(($maxlevel + 1))
> 
> So the Level is computed _at build time_. A package depending on packages
> that can be built (they depend on packages which Level can not be computed)
> can not be built.
-- 
Thierry LARONDE, Centre de Ressources Informatiques, Archamps - France
http://www.cri74.org
PingOO, serveur de com sur distribution GNU/Linux: http://www.pingoo.org



Reply to: