The following commit has been merged in the master branch:
commit 32df205fd7c7dcb604f6f1c35f2d5c20c4bcefa7
Author: Frank Lichtenheld <[EMAIL PROTECTED]>
Date:   Wed Sep 3 04:25:35 2008 +0200

    checks/files: Anchor regexes for embedded-pear-module/embedded-php-library
    
    Add a slash at the beginning to make sure not to match partial filenames.
    (Inspired by aa599a58238b20784a34ac53fd3dbd4293f62f2d)

diff --git a/checks/files b/checks/files
index 6602759..dc811af 100644
--- a/checks/files
+++ b/checks/files
@@ -672,7 +672,7 @@ foreach my $file (sort keys %{$info->index}) {
            [ qr,(?<!Container/)LDAP\.php$, => 'php-net-ldap' ],
        );
        foreach my $pearmodule (@pearmodules) {
-           if ($file =~ m,$pearmodule->[0], and $pkg ne $pearmodule->[1]) {
+           if ($file =~ m,/$pearmodule->[0], and $pkg ne $pearmodule->[1]) {
                open (PEAR, "unpacked/$file") or fail("cannot open PHP file: 
$!");
                while (<PEAR>) {
                    if (m,/pear[/.],i) {
@@ -698,7 +698,7 @@ foreach my $file (sort keys %{$info->index}) {
 #          [ qr,(?i)markdown\.php$, => 'libmarkdown-php' ],
        );
        foreach my $phplibrary (@phplibraries) {
-           if ($file =~ m,$phplibrary->[0], and $pkg ne $phplibrary->[1]) {
+           if ($file =~ m,/$phplibrary->[0], and $pkg ne $phplibrary->[1]) {
                tag "embedded-php-library", "$file";
            }
        }

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to