summaryrefslogtreecommitdiff
path: root/bin/calculate-dependent-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-01 10:28:05 +0100
committerErich Eckner <git@eckner.net>2017-11-01 10:28:05 +0100
commitad463afa2d41e42463476e43436eac224bac1de3 (patch)
tree3c51efa5929a02cbde5df72750b4843460d26edf /bin/calculate-dependent-packages
parent05a43c23b36c4b68a246bc69fa0d699a3ec469fb (diff)
downloadbuilder-ad463afa2d41e42463476e43436eac224bac1de3.tar.xz
() -> {}
Diffstat (limited to 'bin/calculate-dependent-packages')
-rwxr-xr-xbin/calculate-dependent-packages16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/calculate-dependent-packages b/bin/calculate-dependent-packages
index d4791b0..4ca6bfd 100755
--- a/bin/calculate-dependent-packages
+++ b/bin/calculate-dependent-packages
@@ -43,10 +43,10 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
sha512sum "${tmp_dir}/dependent-count"
)
- (
+ {
sed 's|^|? |' "${tmp_dir}/build-list"
sed 'p' "${tmp_dir}/dependent-count"
- ) | \
+ } | \
sort -k2,2 | \
uniq -uf1 | \
cut -d' ' -f2 | \
@@ -77,10 +77,10 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
while read -r sf; do
if [ -n "$(
- (
+ {
sort -u "${work_dir}/package-infos/${sf}.builds"
cat "${tmp_dir}/build-list.build-depends"
- ) | \
+ } | \
sort | \
uniq -d
)" ]; then
@@ -113,17 +113,17 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
continue
fi
if [ -n "$(
- (
+ {
sed '
s|^|'"${work_dir}"'/package-infos/|
s|$|.builds|
' "${loop}" | \
xargs -r cat | \
sort -u
- (
+ {
sed 'p' "${loop}"
cat "${tmp_dir}/build-list"
- ) | \
+ } | \
sort | \
uniq -u | \
sed '
@@ -132,7 +132,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/
' | \
xargs -r grep -hvx 'base\|base-devel' | \
sort -u
- ) | \
+ } | \
sort | \
uniq -d
)" ]; then