Subject: [patch] debmirror: --exclude-deb-section and others use regular
expressions in a sloppy manner
Package: debmirror
Version: 20060907.1
Severity: normal
Tags: patch
*** Please type your report below this line ***
The code that joins @excludes_deb_section into a single regular expression is
faulty.
If you specify '--exclude-deb-section gnome --exclude-deb-section tex', then it
will also exclude the text section, in
addition to the gnome and tex sections.
In essence, the problem is that '(gnome|tex)' should instead be specified as
'^(gnome|tex)$'. The given patch corrects
this behaviour.
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;
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.20vinel-skas3-v8.2
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Versions of packages debmirror depends on:
ii bzip2 1.0.3-6 high-quality block-sorting file co
ii libcompress-zlib-perl 1.42-2 Perl module for creation and manip
ii libdigest-sha1-perl 2.11-1 NIST SHA-1 message digest algorith
ii liblockfile-simple-perl 0.2.5-7 Simple advisory file locking
ii libwww-perl 5.805-1 WWW client/server library for Perl
ii perl [libdigest-md5-perl] 5.8.8-7etch1 Larry Wall's Practical Extraction
ii perl-modules [libnet-perl] 5.8.8-7etch1 Core Perl modules
ii rsync 2.6.9-2etch1 fast remote file copy program (lik
Versions of packages debmirror recommends:
ii gnupg 1.4.6-2 GNU privacy guard - a free PGP rep
ii patch 2.5.9-4 Apply a diff file to an original
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]