summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-12-18 10:22:18 +0100
committerErich Eckner <git@eckner.net>2017-12-18 10:22:18 +0100
commit438a1a8cbc06740b16fb55db1030692148142586 (patch)
tree4623db890832b399c32c1305630aa15fe4fd9e9c /bin/get-package-updates
parent52a6a5cbed2b5622e90473d01971eafaf12ec150 (diff)
downloadbuilder-438a1a8cbc06740b16fb55db1030692148142586.tar.xz
bin/*: satisfy shellcheck
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates18
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 51d4651..e49d37c 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -200,7 +200,7 @@ for repo in ${repo_names}; do
# shellcheck disable=SC2016
sed 's|^\(.\t\)\([^/]\+\)/\([^/]\+\)/\(.\+\)$|\2 \1\3/repos/\2-x86_64/\4|' | \
while read -r pkg_repo rest; do
- eval "printf '%s %s\n'" \
+ eval 'printf '"'"'%s %s\n'"'" \
"$(printf '"${new_repo_revisions__%s}"' "$(find_git_repository_to_package_repository "${pkg_repo}")")" \
"'${rest}'"
done
@@ -371,19 +371,19 @@ find "${work_dir}/package-infos/" -maxdepth 1 -name '*.builds' -printf '%f\n' |
sort -k1,1 > \
"${tmp_dir}/newest-revisions"
-sed "
- s|^\S\+ |${work_dir}/package-infos/|
- s|\$|.builds|
-" "${tmp_dir}/newest-revisions" | \
+sed '
+ s|^\S\+ |'"${work_dir}"'/package-infos/|
+ s|$|.builds|
+' "${tmp_dir}/newest-revisions" | \
xargs -r cat | \
sort | \
uniq -c > \
"${work_dir}/built-packages"
-sed "
- s|^\S\+ |${work_dir}/package-infos/|
+sed '
+ s|^\S\+ |'"${work_dir}"'/package-infos/|
s|\$|.build-depends|
-" "${tmp_dir}/newest-revisions" | \
+' "${tmp_dir}/newest-revisions" | \
xargs -r grep -HF '' | \
sed '
s|\(\.[^.]\+\)\{4\}:\([^:]\+\)$| \2|
@@ -453,7 +453,7 @@ while read -r package git_revision mod_git_revision repository; do
# add "$dependency -> $pkgname" to build-order list
sed "s|\$| ${package}|" "${work_dir}/package-infos/${package}.${git_revision}.${mod_git_revision}.${repository}.build-depends"
# add "base/base-devel -> $pkgname" to build-order list
- printf "%s ${package}\n" 'base' 'base-devel'
+ printf '%s '"${package}"'\n' 'base' 'base-devel'
done \
< "${work_dir}/build-list.new" \
> "${work_dir}/build-order"