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:
authorErich Eckner <git@eckner.net>2017-11-01 13:39:59 +0100
committerErich Eckner <git@eckner.net>2017-11-01 13:39:59 +0100
commit1d6551ca356cb05e0668997559dcf0db090457e5 (patch)
tree39ed4944523946e4e8dddde0be4a4c81b3a9d193 /bin/why-dont-you
parent5ed02366d13409491a292ea6946ee59339a0e228 (diff)
bin/why-dont-you: bugfixes
Diffstat (limited to 'bin/why-dont-you')
-rwxr-xr-xbin/why-dont-you10
1 files changed, 3 insertions, 7 deletions
diff --git a/bin/why-dont-you b/bin/why-dont-you
index b3d9500..25419ff 100755
--- a/bin/why-dont-you
+++ b/bin/why-dont-you
@@ -81,12 +81,8 @@ case "${action}" in
sort -u > \
"${tmp_dir}/unmoveable-list"
- {
- tr ' ' '.' < \
- "${work_dir}/build-list"
- find "${work_dir}/package-states" -maxdepth 1 -name "*.${suffix}" -printf '%f\n' | \
- sed 's|\.[^.]\+$||'
- } | \
+ find "${work_dir}/package-states" -maxdepth 1 -name "*.${suffix}" -printf '%f\n' | \
+ sed 's|\.[^.]\+$||' | \
sort -u > \
"${tmp_dir}/moveable-list"
@@ -107,7 +103,7 @@ case "${action}" in
for pkg in "$@"; do
if ! state_file=$(
- grep "^$(str_to_regex "${pkg}")\(\.[^.]\+\)\{3\}$" "${tmp_dir}/moveable-list"
+ grep "^$(str_to_regex "${pkg}")\(\.[^.]\+\)\{3\}\$" "${tmp_dir}/moveable-list"
) || \
[ ! -f "${work_dir}/package-states/${state_file}.${suffix}" ]; then
printf '"%s" is not %s yet!\n' "${pkg}" "${suffix}"