diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-06-26 21:47:00 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-06-26 21:47:00 +0200 |
commit | c7d3ac5c0051f9385b5d6cb0936f29d3aad7d902 (patch) | |
tree | 6320a7ce77af1c1981944b88678fa63ecd6e6c57 | |
parent | 202d024994fd54d3d86bcfb65378d72a4a200e40 (diff) |
Tighten regex to avoid trailing dash in sections.
-rwxr-xr-x | localdebpool | 3 |
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 |