summaryrefslogtreecommitdiff
path: root/localdebpool
diff options
context:
space:
mode:
Diffstat (limited to 'localdebpool')
-rwxr-xr-xlocaldebpool3
1 files changed, 2 insertions, 1 deletions
diff --git a/localdebpool b/localdebpool
index f80fb0b..c6c91ef 100755
--- a/localdebpool
+++ b/localdebpool
@@ -172,6 +172,7 @@ case "$packages" in
exit 1
;;
*)
+# FIXME: tighten to avoid \b (which wrongly includes - )
pkg_re="\b$(regexfromlist $packages)\b"
;;
esac
@@ -189,7 +190,7 @@ debugprint "Sections in batch: \"$batchsections\""
batchsections_re=
if [ -n "$batchsections" ]; then
- batchsections_re="\b$(regexfromlist ${batchsections/+/\\\\+})\b"
+ batchsections_re="\b$(regexfromlist ${batchsections/+/\\\\+})(\s|\Z)"
else
echo 1>&2 "ERROR: Package(s) $@ was not found in any section."
exit 1