[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.11-231-g522bf1a



The following commit has been merged in the master branch:
commit 522bf1ae43bca58ac19f51e3f05329a5618cf17f
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Apr 7 19:37:10 2013 +0200

    L::Path: Fix mistake in synopsis
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Lintian/Path.pm b/lib/Lintian/Path.pm
index 5a90a58..bcbf1b4 100644
--- a/lib/Lintian/Path.pm
+++ b/lib/Lintian/Path.pm
@@ -35,7 +35,7 @@ Lintian::Path - Lintian representation of a path entry in a package
 
     my ($name, $type, $dir) = ('lintian', 'source', '/path/to/entry');
     my $info = Lintian::Collect->new ($name, $type, $dir);
-    my $path = $info->index-> ('bin/ls');
+    my $path = $info->index('bin/ls');
     if ($path->is_file) {
        # is file (or hardlink)
        if ($path->is_hardlink) { }
@@ -48,7 +48,7 @@ Lintian::Path - Lintian representation of a path entry in a package
        my $resolved = $path->link_resolved;
        if (defined $resolved) {
            # is a resolvable symlink (pointing to $target)
-           my $more_info = $info->index-> ($resolved);
+           my $more_info = $info->index($resolved);
        }
     }
 

-- 
Debian package checker


Reply to: