From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1690 invoked by uid 1002); 30 Apr 2003 00:36:33 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 4378 invoked from network); 30 Apr 2003 00:36:32 -0000 From: Vano D Reply-To: gentoo-dev@europeansoftware.com To: gentoo-dev@gentoo.org In-Reply-To: <200304300131.18918.panard@inzenet.org> References: <20030429T133403Z_B95E00150000@gentoo.org> <200304292112.24722.panard@inzenet.org> <1051647137.17176.13.camel@gentoo.europeansoftware.com> <200304300131.18918.panard@inzenet.org> Content-Type: text/plain Organization: Message-Id: <1051663150.17173.54.camel@gentoo.europeansoftware.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4- Date: 30 Apr 2003 02:39:10 +0200 Content-Transfer-Encoding: 7bit Subject: Re: [gentoo-dev] emerge with interacitve use X-Archives-Salt: aecaa02f-c560-46d4-a2ef-ece88daac756 X-Archives-Hash: d4b0b437fa766b3878ef5c83905eb579 On Wed, 2003-04-30 at 01:31, Panard wrote: > Ok, I've apply theses changes (I join the emerge-interactive file) : > > -> there is a /var/db/pkg/CATEG/PKG/USECUSTOM : > ask to use this file y or n : > y : we load the values of the file > n : we ask for the new values, when, (re-)create > /var/db/pkg/CATEG/PKG/USECUSTOM > -> no file we do exactly like if the user answer n to the previous question > > > > Please test this script (I made some merge and it was working) Fantastic !!! It works just as advertised :) well done ! Maybe you should put this in a bug report so the maintaners notice it and get motivated to incorporate the changes into Portage. You can also supply them the diff, I think it would be easier for them but maybe some portage people around would know better than me. The only comment I can think of is that I would name this feature more like "per package (interactive) USE management" or something rather than just plain (-I) interactive. It has passed way beyond just interactivity for me :) BTW I don't know if you included any commandline options like "--usecustom" so it won't ask and use the USECUSTOM file all the time. This is good for when doing emerge -Up world or for scalability. Great great stuff !!! PD. There is just one bug I found when I do something like "emerge -Ip package" and set the flags it actually updates the USEFLAG file. Maybe you should tell it not to do anything when the user chooses --pretend. Also looks like you create the USECUSTOM file before the rest of portage starts donwloading/compiling/merging. Maybe you should also create the USECUSTOM flag right at the same moment when the rest of the /var/db files are created. This well keep consistency. Just to give you an example I ran emerge-interactive -Ip balsa and set the use flags, and now portage thinks I have it installed: [ebuild R ] net-mail/balsa-2.0.9-r1 That is because there is a "/var/db/pkg/net-mail/balsa-2.0.9-r1" with only USECUSTOM inside it. Anyhow GREAT job ! Regards. -- Vano D -- gentoo-dev@gentoo.org mailing list