From 5a42f3c5b51ecd5fff18a5556935f4cfc6b9b29d Mon Sep 17 00:00:00 2001 From: Markus Meier Date: Tue, 1 Oct 2013 21:09:09 +0200 Subject: do not display subslot --- scripts/rdep | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') 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 -- cgit v1.2.3-65-gdbad