Browse Source

remove_missing_binary_packages: make check for missing package match whole words

If we have a package named ngcp-templates-ce-hylafaxplus then
this will match within the string ngcp-templates-ce-hylafaxplus-iax
and therefore will be skipped as in the missing_packages list.
So make the grep match only leading and trailing white space characters.
merge-requests/109/head
Michael Prokop 10 years ago
parent
commit
de56110985
  1. 2
      scripts/build-and-provide-package

2
scripts/build-and-provide-package

@ -352,7 +352,7 @@ remove_missing_binary_packages() {
esac
for p in $(${SUDO_CMD:-} reprepro -v -b "${REPOSITORY}" --waitforlock 1000 --list-format '${package}\n' listmatched "${REPOS}" '*' | sort -u); do
echo "$binary_list" | grep -q "$p" || missing_packages="${missing_packages:-} $p"
echo " $binary_list " | grep -q " $p " || missing_packages="${missing_packages:-} $p"
done
if echo "${missing_packages:-}" | grep -q '.' ; then

Loading…
Cancel
Save