Sloppy regular expression handling in --exclude etc. causes --exclude tex to exclude text also.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debmirror (Debian) |
Won't Fix
|
Unknown
|
|||
debmirror (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: debmirror
This bug affects all versions of debmirror available in Ubuntu and Debian (although I have previously sent a patch to Debian)
When specifying --exclude tex to exclude the 'tex' section, the code that formulates the regular expression does not anchor the beginning or end, thus the 'text' section is also excluded. Upon further inspection there are other options that this affects as well. Here is a patch against debmirror:
782c782
< $exclude = "(".join("|", @excludes).")" if @excludes;
---
> $exclude = '^('.join("|", @excludes).')$' if @excludes;
784c784
< "(".join("|", @excludes_
---
> '^('.join("|", @excludes_
786,787c786,787
< "(".join("|", @limit_
< $include = "(".join("|", @includes).")" if @includes;
---
> '^('.join("|", @limit_
> $include = '^('.join("|", @includes).')$' if @includes;
Changed in debmirror (Debian): | |
status: | Unknown → Won't Fix |
can someone delete the upstream bug link? it was intended for a different report.