summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocaldebpool4
1 files changed, 2 insertions, 2 deletions
diff --git a/localdebpool b/localdebpool
index 26ba41c..68a107b 100755
--- a/localdebpool
+++ b/localdebpool
@@ -26,7 +26,7 @@ compactlist() {
}
regexfromlist() {
- echo $@ | sed 's/[[:space:]]\+/|/g; s/^/(/; s/$/)/'
+ echo $@ | sed 's/[[:space:]]\+/|/g; s/+/\\+/g; s/^/(/; s/$/)/'
}
sectionsfromhintstream() {
@@ -190,7 +190,7 @@ debugprint "Sections in batch: \"$batchsections\""
batchsections_re=
if [ -n "$batchsections" ]; then
- batchsections_re="\b$(regexfromlist ${batchsections/+/\\\\+})(\s|\Z)"
+ batchsections_re="\b$(regexfromlist $batchsections)(\s|\Z)"
else
echo 1>&2 "ERROR: Package(s) $@ was not found in any section."
exit 1