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

Re: udpkg wierdness



> Index: status.c
> ===================================================================
> RCS file: /cvs/debian-boot/debian-installer/tools/udpkg/status.c,v
> retrieving revision 1.19
> diff -u -r1.19 status.c
> --- status.c    2000/12/31 01:24:51     1.19
> +++ status.c    2001/02/09 22:25:09
> @@ -153,6 +153,12 @@
>                 control_read(f, m);
>                 if (m->package)
>                 {
> +                       /*
> +                        * If there is an item in the tree by this name,
> +                        * it must be a virtual package; insert real
> +                        * package in preference.
> +                        */
> +                       tdelete(m, &status, package_compare);
>                         tsearch(m, &status, package_compare);
>                         if (m->provides)
>                         {
> 
> I haven't committed this since I don't have a test case handy. Please test
> and commit if it works..
> 

I just commited it, this stops the status file getting corrupt on my
machine, much better than any of the patches i was thing of.

I havent used c's binary trees much, they look pretty handy....


Glenn



Reply to: