From: "Markus Meier" <maekke@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/maekke:master commit in: scripts/
Date: Sat, 8 Oct 2011 12:10:01 +0000 (UTC) [thread overview]
Message-ID: <99f831322ceee439ea2ffc6b5d278ea013958847.maekke@gentoo> (raw)
commit: 99f831322ceee439ea2ffc6b5d278ea013958847
Author: Markus Meier <maekke <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 8 12:10:57 2011 +0000
Commit: Markus Meier <maekke <AT> gentoo <DOT> org>
CommitDate: Sat Oct 8 12:10:57 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/maekke.git;a=commit;h=99f83132
use slots instead of versions (right now it's quite slow because of portageq usage for reading SLOT from metadata)
---
scripts/rdep | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/scripts/rdep b/scripts/rdep
index 936176a..8013181 100755
--- a/scripts/rdep
+++ b/scripts/rdep
@@ -42,9 +42,8 @@ tmp="$(mktemp)"
wget -o /dev/null -O "${tmp}" "${BASE_URL}/${pkg}"
last_pn=""
-# we sort it reverse, that we have the latest version in most cases the first and
-# not print the "older ones". this has some room for improvement
-for p in $(grep -v '^[B]' ${tmp} | sort -r); do
+
+for p in $(grep -v '^[B]' ${tmp}); do
cpv="${p/:*/}"
use="${p/*:/}"
[[ ${use} == ${p} ]] && use=""
@@ -72,10 +71,11 @@ for p in $(grep -v '^[B]' ${tmp} | sort -r); do
|| expr="KEYWORDS=.*( |\")\<${arch}\>"
if [[ -e ${ebuild} && $(egrep -H "${expr}" \
${ebuild} | wc -l) == 1 ]]; then
- if [[ ${last_pn} != ${category}/${pn} ]]; then
- [[ -z ${use} ]] && echo "=${cpv}" || echo "=${cpv}[${use}]"
+ slot=$(portageq metadata / ebuild ${cpv} SLOT)
+ if [[ ${last_pn} != ${category}/${pn}:${slot} ]]; then
+ [[ -z ${use} ]] && echo "=${category}/${pn}:${slot}" || echo "=${category}/${pn}:${slot}[${use}]"
fi
- last_pn="${category}/${pn}"
+ last_pn="${category}/${pn}:${slot}"
fi
done
rm "${tmp}"
next reply other threads:[~2011-10-08 12:10 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-08 12:10 Markus Meier [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-10-03 8:59 [gentoo-commits] dev/maekke:master commit in: scripts/ Markus Meier
2015-08-21 16:44 Markus Meier
2015-08-19 17:09 Markus Meier
2015-08-18 20:20 Markus Meier
2015-08-18 20:20 Markus Meier
2015-01-21 16:34 Markus Meier
2014-10-04 10:37 Markus Meier
2014-07-17 18:06 Markus Meier
2014-06-19 18:46 Markus Meier
2014-06-01 16:13 Markus Meier
2014-06-01 16:13 Markus Meier
2014-06-01 16:13 Markus Meier
2013-10-05 19:30 Markus Meier
2013-10-01 19:03 Markus Meier
2013-07-29 22:11 Markus Meier
2013-05-14 18:22 Markus Meier
2013-05-09 13:29 Markus Meier
2012-05-26 10:05 Markus Meier
2011-10-15 12:38 Markus Meier
2011-10-08 23:57 Markus Meier
2011-10-08 23:31 Markus Meier
2011-10-08 23:24 Markus Meier
2011-10-08 23:06 Markus Meier
2011-04-10 21:12 Markus Meier
2011-04-10 20:45 Markus Meier
2011-04-09 12:38 Markus Meier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=99f831322ceee439ea2ffc6b5d278ea013958847.maekke@gentoo \
--to=maekke@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox