summaryrefslogtreecommitdiff
path: root/checkDependencies
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-26 08:33:30 +0200
committerErich Eckner <git@eckner.net>2019-04-26 08:33:30 +0200
commit99b03cc815a25e53e01f6c819a7edc838cf79d57 (patch)
tree5727cf2ac18dbf7dae114469a8e24414f8e51a66 /checkDependencies
parentdba657027b8e4e4036939f200b50759f5a897d5e (diff)
downloadarchlinuxewe-99b03cc815a25e53e01f6c819a7edc838cf79d57.tar.xz
checkDependencies: change format of cache file
Diffstat (limited to 'checkDependencies')
-rwxr-xr-xcheckDependencies30
1 files changed, 13 insertions, 17 deletions
diff --git a/checkDependencies b/checkDependencies
index 54c6d3370..4adabae03 100755
--- a/checkDependencies
+++ b/checkDependencies
@@ -98,29 +98,25 @@ if [ ! -f '/tmp/packages' ]; then
| sed '
s/\([<>=]\S\+\)-\S\+$/\1/
' \
+ | sed '
+ s,^\(\S\+ \)\S\+/\([^/[:space:]]\+\)/\([^/[:space:]]\+\)\.db\.tar\.gz ,\1\2 \3 ,
+ s/\([<=>]\S\+\)\?$/ \1/
+ ' \
+ | sed '
+ s/ $/ X X/
+ t
+ s/\([<>]=\)\(\S\+\)$/\1 \2/
+ t
+ s/\([<>=]\)\(\S\+\)$/\1 \2/
+ t
+ w /dev/stderr
+ ' \
| tee "${cache_file}"
)
else
packages=$(cat "${cache_file}")
fi
-packages=$(
- printf '%s\n' "${packages}" \
- | sed '
- s,^\(\S\+ \)\S\+/\([^/[:space:]]\+\)/\([^/[:space:]]\+\)\.db\.tar\.gz ,\1\2 \3 ,
- s/\([<=>]\S\+\)\?$/ \1/
- ' \
- | sed '
- s/ $/ X X/
- t
- s/\([<>]=\)\(\S\+\)$/\1 \2/
- t
- s/\([<>=]\)\(\S\+\)$/\1 \2/
- t
- w /dev/stderr
- '
-)
-
matched_dependencies=$(
join -1 1 -2 3 -o 1.1,2.1,2.2,2.5,1.3,2.4,1.2 <(
printf '%s\n' "${packages}" \