1 |
Some of my db entries have a "USE" but not a "IUSE" file. |
2 |
I changed the check to [[ -r ${pdir}/USE && -r ${pdir}/IUSE ]] |
3 |
to avoid ugly error messages. |
4 |
|
5 |
On Wed, Oct 15, 2003 at 08:43:41PM +0200, Eldad Zack wrote: |
6 |
> |
7 |
> I've wanted the same functionality myself, so I went ahead and changed |
8 |
> qpkg. |
9 |
> |
10 |
> apply this patch to qpkg. |
11 |
> |
12 |
> If the developers maintaining gentoolkit would apply this at well, it'll |
13 |
> be even better. |
14 |
> |
15 |
> --- /usr/bin/qpkg 2003-10-03 13:23:58.000000000 +0200 |
16 |
> +++ qpkg 2003-10-15 20:35:24.000000000 +0200 |
17 |
> @@ -376,6 +376,21 @@ |
18 |
> home=`grep HOMEPAGE ${p}| cut -d\" -f2` |
19 |
> desc=`grep DESCRIPTION ${p}| cut -d\" -f2` |
20 |
> echo -e "${T}${BL}${desc}${NO} [ ${YL}${home}${NO} ]" |
21 |
> + if [ ${verb} -gt 0 ]; then |
22 |
> + pdir=${p/$(basename ${p})/} |
23 |
> + if [[ -r ${pdir}/USE ]]; then |
24 |
> + echo -n "Compiled with USE Flags: " |
25 |
> + for flag in $(<${pdir}/IUSE) |
26 |
> + do |
27 |
> + use=$(grep -o ${flag} ${pdir}/USE | tr -d '\n') |
28 |
> + if [[ "${use}" == "" ]]; then |
29 |
> + echo -n "-" |
30 |
> + fi |
31 |
> + echo -n "${flag} " |
32 |
> + done |
33 |
> + echo |
34 |
> + fi |
35 |
> + fi |
36 |
> fi |
37 |
> |
38 |
> if [ "${query}" ]; then |
39 |
|
40 |
-- |
41 |
gentoo-dev@g.o mailing list |