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

[lintian] 01/01: L::Coll::Package: Add () to ensure operator order



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 87ccdf8af7e730a45b3c308cb5e510f8f04c00e9
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Jul 18 08:22:40 2015 +0200

    L::Coll::Package: Add () to ensure operator order
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 lib/Lintian/Collect/Package.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Lintian/Collect/Package.pm b/lib/Lintian/Collect/Package.pm
index f3ef628..3df2f0c 100644
--- a/lib/Lintian/Collect/Package.pm
+++ b/lib/Lintian/Collect/Package.pm
@@ -451,8 +451,8 @@ sub _fetch_index_data {
             $operm = perm2oct($perm);
         }
         $raw_type = substr($perm, 0, 1);
-        $file{'_path_info'} = $operm | $FILE_CODE2LPATH_TYPE{$raw_type}
-          // Lintian::Path::TYPE_OTHER;
+        $file{'_path_info'} = $operm
+          | ($FILE_CODE2LPATH_TYPE{$raw_type} // Lintian::Path::TYPE_OTHER);
 
         if ($num_idx) {
             # If we have a "numeric owner" index file, read that as well

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: