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

[lintian] 01/01: helpers/c/objdump-info-helper: Remove incorrect special case



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

nthykier pushed a commit to branch master
in repository lintian.

commit d0e8479eefe6467f5b61e64be11e0d013e0f2807
Author: Niels Thykier <niels@thykier.net>
Date:   Mon Jun 29 21:14:19 2015 +0200

    helpers/c/objdump-info-helper: Remove incorrect special case
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 helpers/coll/objdump-info-helper | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/helpers/coll/objdump-info-helper b/helpers/coll/objdump-info-helper
index d73de98..97c07e5 100755
--- a/helpers/coll/objdump-info-helper
+++ b/helpers/coll/objdump-info-helper
@@ -51,21 +51,6 @@ if (not $pid) {
     exec 'readelf', '-WltdVs', @ARGV;
 }
 
-if (scalar @ARGV == 1) {
-    # Special case - readelf will not prefix the output with "File:
-    # $name" if it only gets one file argument, so act as if it did...
-    # - In fact, if readelf always emitted that File: header, we could
-    #   simply use xargs directly on readelf and just parse its output
-    #   in the loop below.
-    $bin = $ARGV[0];
-    print "Filename: $bin\n";
-
-    if (spawn(undef, ['head', $bin], '|', ['grep', '-q', 'packed.*with.*UPX']))
-    {
-        print "UPX: yes\n";
-    }
-}
-
 while (my $line = <$readelf>) {
 
     chomp $line;

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


Reply to: