cheap trick to fix + issue in package search

This commit is contained in:
Stephen 2017-12-11 08:10:46 -08:00 committed by Henrik Grimler
parent 76bf43df1e
commit 553805e932

View File

@ -498,7 +498,8 @@ termux_step_start_build() {
while IFS=',' read -ra PKG; do
for p in "${PKG[@]}"; do
p="$(echo -e "${p}" | tr -d '[:space:]')"
apt-get $TERMUX_APT install "^${p}(-dev)?$":any
# Install packages and dev packages and escape + with \+ to avoid apt regex
apt-get $TERMUX_APT install "^${p//+/\\+}(-dev)?$":any
sudo chown -R builder:builder /data
done
done <<< "${!i}"
@ -510,7 +511,8 @@ termux_step_start_build() {
while IFS=',' read -ra PKG; do
for p in "${PKG[@]}"; do
p="$(echo -e "${p}" | tr -d '[:space:]')"
apt-get $TERMUX_APT install "^${p}(-dev)?$":any
# Install packages and dev packages and escape + with \+ to avoid apt regex
apt-get $TERMUX_APT install "^${p//+/\\+}(-dev)?$":any
sudo chown -R builder:builder /data
done
done <<< $TERMUX_SUBPKG_DEPENDS