[Bug 307011] [NEW] Sloppy regular expression handling in --exclude etc. causes --exclude tex to exclude text also.

Cameron Kerr ckerr at cs.otago.ac.nz
Wed Dec 10 23:43:07 UTC 2008


Public bug reported:

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_deb_section).")" if @excludes_deb_section;
---
>     '^('.join("|", @excludes_deb_section).')$' if @excludes_deb_section;
786,787c786,787
<     "(".join("|", @limit_priority).")" if @limit_priority;
<   $include =  "(".join("|", @includes).")" if @includes;
---
>     '^('.join("|", @limit_priority).')$' if @limit_priority;
>   $include =  '^('.join("|", @includes).')$' if @includes;

** Affects: debmirror (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Sloppy regular expression handling in --exclude etc. causes --exclude tex to exclude text also.
https://bugs.launchpad.net/bugs/307011
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list