aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2011-04-10 23:14:06 +0200
committerMarkus Meier <maekke@gentoo.org>2011-04-10 23:14:06 +0200
commit0a6cef59ffe011866f7406da86abab1d9c1540df (patch)
tree58e616069603a9590b6593213c537d54f881e155 /scripts/rdep
parentremove wrong output (diff)
parentadd support for unstable arch specific rdeps (diff)
downloadmaekke-0a6cef59ffe011866f7406da86abab1d9c1540df.tar.gz
maekke-0a6cef59ffe011866f7406da86abab1d9c1540df.tar.bz2
maekke-0a6cef59ffe011866f7406da86abab1d9c1540df.zip
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/dev/maekke
Diffstat (limited to 'scripts/rdep')
-rwxr-xr-xscripts/rdep6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/rdep b/scripts/rdep
index 38cbd18..936176a 100755
--- a/scripts/rdep
+++ b/scripts/rdep
@@ -29,7 +29,7 @@ if [[ ! -x $(which q) ]] ; then
exit 1
fi
-if [[ $(egrep "\<${arch}\>" ${REPODIR}/profiles/arch.list | wc -l) == 0 ]]; then
+if [[ $(egrep "\<${arch/\~/}\>" ${REPODIR}/profiles/arch.list | wc -l) == 0 ]]; then
echo "invalid arch ${arch}"
exit 1
fi
@@ -68,7 +68,9 @@ for p in $(grep -v '^[B]' ${tmp} | sort -r); do
# make sure that the file exists, as the local or remote tree
# may be out of date
ebuild="${REPODIR}/${category}/${pn}/${pn}-${version}.ebuild"
- if [[ -e ${ebuild} && $(egrep -H "KEYWORDS=.*( |\")\<${arch}\>" \
+ [[ "${arch}" != "${arch/\~/}" ]] && expr="KEYWORDS=.*\<${arch/\~/}\>" \
+ || 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}]"