summaryrefslogtreecommitdiff
path: root/checkDependencies
diff options
context:
space:
mode:
Diffstat (limited to 'checkDependencies')
-rwxr-xr-xcheckDependencies8
1 files changed, 4 insertions, 4 deletions
diff --git a/checkDependencies b/checkDependencies
index 01e71b505..54c6d3370 100755
--- a/checkDependencies
+++ b/checkDependencies
@@ -1,6 +1,7 @@
#!/bin/bash
mirror_base='/srv/arch-mirror/arch/arch/merged'
+cache_file='/tmp/packages'
if [ ! -f '/tmp/packages' ]; then
packages=$(
@@ -96,12 +97,11 @@ if [ ! -f '/tmp/packages' ]; then
done \
| sed '
s/\([<>=]\S\+\)-\S\+$/\1/
- '
+ ' \
+ | tee "${cache_file}"
)
-
- printf '%s\n' "${packages}" > /tmp/packages
else
- packages=$(cat /tmp/packages)
+ packages=$(cat "${cache_file}")
fi
packages=$(