From c7d3ac5c0051f9385b5d6cb0936f29d3aad7d902 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 26 Jun 2010 21:47:00 +0200 Subject: Tighten regex to avoid trailing dash in sections. --- localdebpool | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'localdebpool') 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 -- cgit v1.2.3