1 |
I forgot to mention - |
2 |
|
3 |
The patch shows the USE flags whenever -i -v is used. |
4 |
also, it would show up only with installed packages. |
5 |
|
6 |
On Wed, 15 Oct 2003, Eldad Zack wrote: |
7 |
|
8 |
> |
9 |
> On Tue, 14 Oct 2003, Andrew Gaffney wrote: |
10 |
> |
11 |
> > Chris Gianelloni wrote: |
12 |
> > > On Tue, 2003-10-14 at 12:52, Andrew Gaffney wrote: |
13 |
> > > |
14 |
> > >>Is there a program/script out there that can give me the same information at 'qpkg -q' |
15 |
> > >>*and* take into account the USE flags packages were compiled with? If not, I'm going to |
16 |
> > >>write one. |
17 |
> > > |
18 |
> > > |
19 |
> > > Why not add the functionality to qpkg? |
20 |
> > |
21 |
> > First of all, I'm not a very good bash/sed/awk/grep/etc. programmer. Second, I believe |
22 |
> > that is beyond the functionality of a bash script. |
23 |
> > |
24 |
> > -- |
25 |
> > Andrew Gaffney |
26 |
> > |
27 |
> > |
28 |
> > -- |
29 |
> > gentoo-dev@g.o mailing list |
30 |
> > |
31 |
> > |
32 |
> |
33 |
> I've wanted the same functionality myself, so I went ahead and changed |
34 |
> qpkg. |
35 |
> |
36 |
> apply this patch to qpkg. |
37 |
> |
38 |
> If the developers maintaining gentoolkit would apply this at well, it'll |
39 |
> be even better. |
40 |
> |
41 |
> --- /usr/bin/qpkg 2003-10-03 13:23:58.000000000 +0200 |
42 |
> +++ qpkg 2003-10-15 20:35:24.000000000 +0200 |
43 |
> @@ -376,6 +376,21 @@ |
44 |
> home=`grep HOMEPAGE ${p}| cut -d\" -f2` |
45 |
> desc=`grep DESCRIPTION ${p}| cut -d\" -f2` |
46 |
> echo -e "${T}${BL}${desc}${NO} [ ${YL}${home}${NO} ]" |
47 |
> + if [ ${verb} -gt 0 ]; then |
48 |
> + pdir=${p/$(basename ${p})/} |
49 |
> + if [[ -r ${pdir}/USE ]]; then |
50 |
> + echo -n "Compiled with USE Flags: " |
51 |
> + for flag in $(<${pdir}/IUSE) |
52 |
> + do |
53 |
> + use=$(grep -o ${flag} ${pdir}/USE | tr -d '\n') |
54 |
> + if [[ "${use}" == "" ]]; then |
55 |
> + echo -n "-" |
56 |
> + fi |
57 |
> + echo -n "${flag} " |
58 |
> + done |
59 |
> + echo |
60 |
> + fi |
61 |
> + fi |
62 |
> fi |
63 |
> |
64 |
> if [ "${query}" ]; then |
65 |
> |
66 |
> |
67 |
|
68 |
-- |
69 |
gentoo-dev@g.o mailing list |