Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/why_dont_you
diff options
context:
space:
mode:
Diffstat (limited to 'bin/why_dont_you')
-rwxr-xr-xbin/why_dont_you12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/why_dont_you b/bin/why_dont_you
index 2c4d43e..6424335 100755
--- a/bin/why_dont_you
+++ b/bin/why_dont_you
@@ -58,10 +58,11 @@ case "${action}" in
sort | \
uniq -d | \
while read -r dep; do
- grep -Fx "${dep}" "${work_dir}/package-infos/"*".builds" | \
- cut -d: -f1 | \
- xargs -rn1 basename | \
- cut -d. -f1
+ grep -lxF "${dep}" "${work_dir}/package-infos/"*".builds" | \
+ sed '
+ s|^.*/||
+ s|\(\.[^.]\+\)\{3\}||
+ '
done | \
sort -u
@@ -86,8 +87,7 @@ case "${action}" in
fi
dependent_packages="$(
- grep -xF "${pkg}" "${work_dir}/package-infos/"*".depends" | \
- cut -d: -f1 | \
+ grep -lxF "${pkg}" "${work_dir}/package-infos/"*".depends" | \
sed '
s|^.*/||
s|\.depends$||