From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28029 invoked by uid 1002); 30 Apr 2003 00:31:31 -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 11494 invoked from network); 30 Apr 2003 00:31:31 -0000 From: Todd Berman Reply-To: tberman@gentoo.org 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-lp0J7DchBTfWKCTGXqva" Organization: Message-Id: <1051661864.7006.1.camel@phaze> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4- Date: 29 Apr 2003 20:31:31 -0400 Subject: Re: [gentoo-dev] emerge with interacitve use X-Archives-Salt: 279f627d-04e7-48e4-aabc-98eabff88107 X-Archives-Hash: 0039259aaaf7e63cf7538e3b3291610d --=-lp0J7DchBTfWKCTGXqva Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Please stop attaching things to emails coming to this list. Either post a url, or ask for people to reply privately to you so you can email it to them. Thanks --Todd On Tue, 2003-04-29 at 19:31, Panard wrote: > Le Mardi 29 Avril 2003 22:12, Vano D a =E9crit : > | Hi Panard, > | > | How about adding a little functionality to the script so it keeps whic= h > | USE vars the user chooses in a file like > | /var/db/pkg/app-editors/vim-6.1-r21/USECUSTOM (that would be for vim :)= ? > | I have checked the USE files but they all contain the complete $USE > | variable when the package was emerged. So maybe if you add the > | functionality so it adds a USECUSTOM file containing the USE vars the > | user has chosen interactively then you could have an option at the > | beginning of the interactive command asking: > | > | "Use previous USE flags for this package? (X gtk etc..) [Y/n]" > | > | If the user says Y, then you would extract the USE flags from USECUSTO= M > | and use those. > | > | Also you could have a commandline option such as --usecustom or > | something like that, so if the user calls emerge-interactive with that > | flag it skips all questions and uses the previously kept USE flags. > | > | Of course this would only work if you only used emerge-interactive > | since emerge doesnt create any USECUSTOM files :) But I don't think thi= s > | is a big problem. In any case if emerge-interactive doesn't find any > | CUSTOMFILE then it asks the users for USE flags just like now. > | > | This solves the scalibility problem and gives the user best of both > | worlds. What do you think? > | > | Regards. >=20 >=20 >=20 > Ok, I've apply theses changes (I join the emerge-interactive file) : >=20 > -> 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=20 > /var/db/pkg/CATEG/PKG/USECUSTOM > -> no file we do exactly like if the user answer n to the previous que= stion >=20 >=20 >=20 > Please test this script (I made some merge and it was working) >=20 > Thanks, >=20 > Panard --=-lp0J7DchBTfWKCTGXqva Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+rxYnPaCtt9MQLlARAuLQAKCH7JEBV0gxpf+6AYvp9OXSsEJ9ggCgiPv9 ib1QeusaIHBc2wfvdYspAZQ= =Dke2 -----END PGP SIGNATURE----- --=-lp0J7DchBTfWKCTGXqva--