| Summary: | app-portage/portage-utils: qlist ignores SLOT's for uniqueness | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Pacho Ramos <pacho> |
| Component: | Current packages | Assignee: | Portage Utils Team <portage-utils> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Pacho Ramos
2011-01-30 12:09:03 UTC
(bug references are simply got from original file, simply ignore them) qlist is used as follows to generate documentation file:
$(for pkgset in $(qlist -ICve $(sort -u ../emul-linux-x86-$x ) ; do
pv=$(qatom $pkgset | awk '{print $3}')
pvr=$(qatom $pkgset | awk '{print $4}')
[[ $pvr != "" ]] && pvr="$pv-$pvr" || pvr="$pv"
cp=$(qatom $pkgset | awk '{print $1"/"$2}')
echo $cp $pvr | awk '{print "<tr><th>"$1"</th><th>"$2"</th></tr>"}'
done)
I have tried to append cut -d: -f1 to qlist command but, even it working if I manually running only qlist command, it still fails when running in script :-(
qlist doesn't show the version that's what the problem is. I have the following: $ qlist -IC dev-lang dev-lang/R dev-lang/fpc dev-lang/gnat-gcc dev-lang/lua dev-lang/mono dev-lang/nasm dev-lang/orc dev-lang/perl dev-lang/php dev-lang/php dev-lang/python dev-lang/python dev-lang/python dev-lang/ruby dev-lang/swig dev-lang/tcl dev-lang/tk dev-lang/vala dev-lang/vala dev-lang/yasm For example, there are three instances of python, that would be 2.6.6, 2.7.1 and 3.1.1. I concur that qlist needs to be a bit more intelligent about the versions. This is with 0.3.1. $ qlist -Iv x11-libs/gtksourceview
x11-libs/gtksourceview-2.10.5-r2
x11-libs/gtksourceview-3.4.2
$ qlist -IvS x11-libs/gtksourceview
x11-libs/gtksourceview-2.10.5-r2:2.0
x11-libs/gtksourceview-3.4.2:3.0
$ qlist -IvS gtksourceview:{2,3}.0
x11-libs/gtksourceview-2.10.5-r2:2.0
x11-libs/gtksourceview-3.4.2:3.0
http://sources.gentoo.org/gentoo-projects/portage-utils/main.c?r1=1.221&r2=1.222
http://sources.gentoo.org/gentoo-projects/portage-utils/qlist.c?r1=1.72&r2=1.73
http://sources.gentoo.org/gentoo-projects/portage-utils/libq/vdb.c?r1=1.4&r2=1.5
|