Gentoo Archives: gentoo-dev

From: Todd Berman <tberman@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] emerge with interacitve use
Date: Wed, 30 Apr 2003 00:31:31
Message-Id: 1051661864.7006.1.camel@phaze
In Reply to: Re: [gentoo-dev] emerge with interacitve use by Panard
1 Please stop attaching things to emails coming to this list. Either post
2 a url, or ask for people to reply privately to you so you can email it
3 to them.
4
5 Thanks
6
7 --Todd
8
9 On Tue, 2003-04-29 at 19:31, Panard wrote:
10 > Le Mardi 29 Avril 2003 22:12, Vano D a écrit :
11 > | Hi Panard,
12 > |
13 > | How about adding a little functionality to the script so it keeps which
14 > | USE vars the user chooses in a file like
15 > | /var/db/pkg/app-editors/vim-6.1-r21/USECUSTOM (that would be for vim :)?
16 > | I have checked the USE files but they all contain the complete $USE
17 > | variable when the package was emerged. So maybe if you add the
18 > | functionality so it adds a USECUSTOM file containing the USE vars the
19 > | user has chosen interactively then you could have an option at the
20 > | beginning of the interactive command asking:
21 > |
22 > | "Use previous USE flags for this package? (X gtk etc..) [Y/n]"
23 > |
24 > | If the user says Y, then you would extract the USE flags from USECUSTOM
25 > | and use those.
26 > |
27 > | Also you could have a commandline option such as --usecustom or
28 > | something like that, so if the user calls emerge-interactive with that
29 > | flag it skips all questions and uses the previously kept USE flags.
30 > |
31 > | Of course this would only work if you only used emerge-interactive
32 > | since emerge doesnt create any USECUSTOM files :) But I don't think this
33 > | is a big problem. In any case if emerge-interactive doesn't find any
34 > | CUSTOMFILE then it asks the users for USE flags just like now.
35 > |
36 > | This solves the scalibility problem and gives the user best of both
37 > | worlds. What do you think?
38 > |
39 > | Regards.
40 >
41 >
42 >
43 > Ok, I've apply theses changes (I join the emerge-interactive file) :
44 >
45 > -> there is a /var/db/pkg/CATEG/PKG/USECUSTOM :
46 > ask to use this file y or n :
47 > y : we load the values of the file
48 > n : we ask for the new values, when, (re-)create
49 > /var/db/pkg/CATEG/PKG/USECUSTOM
50 > -> no file we do exactly like if the user answer n to the previous question
51 >
52 >
53 >
54 > Please test this script (I made some merge and it was working)
55 >
56 > Thanks,
57 >
58 > Panard

Attachments

File name MIME type
signature.asc application/pgp-signature