aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2013-10-01 21:09:09 +0200
committerMarkus Meier <maekke@gentoo.org>2013-10-01 21:09:09 +0200
commit5a42f3c5b51ecd5fff18a5556935f4cfc6b9b29d (patch)
treeef17768dd8724ece5a2afad977d75b4233598827
parentsync with gentoo-x86 (diff)
downloadmaekke-5a42f3c5b51ecd5fff18a5556935f4cfc6b9b29d.tar.gz
maekke-5a42f3c5b51ecd5fff18a5556935f4cfc6b9b29d.tar.bz2
maekke-5a42f3c5b51ecd5fff18a5556935f4cfc6b9b29d.zip
do not display subslot
-rwxr-xr-xscripts/rdep1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/rdep b/scripts/rdep
index db11e80..6157d8c 100755
--- a/scripts/rdep
+++ b/scripts/rdep
@@ -80,6 +80,7 @@ for p in $(grep -v '^[B]' ${tmp}); do
if [[ -e ${ebuild} && $(egrep -H "${expr}" \
${ebuild} | wc -l) == 1 ]]; then
slot=$(portageq metadata / ebuild ${cpv} SLOT)
+ slot=${slot/\/*/} # kill subslot
if [[ ${last_pn} != ${category}/${pn}:${slot} ]]; then
[[ -z ${use} ]] && echo "${category}/${pn}:${slot}" || echo "${category}/${pn}:${slot}[${use}]"
fi