Changeset 1777

Show
Ignore:
Timestamp:
16/09/10 09:08:10 (3 years ago)
Author:
matthijs
Message:

buildsystem: Fix find_depends.pl showing the package itself.

find_depends.pl is supposed to show all dependencies of a given package,
but it would also show the package itself. There was condition to
prevent that, but it used the wrong variable name and numerical
inequality instead of string inequality.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/scripts/find_depends.pl

    r1751 r1777  
    2424    my $pkg = $package{$name}; 
    2525    my $makefile = $pkg->{makefile}; 
    26     print("$name\t$makefile\n") if $pkg != $ARGV[1]; 
     26    print("$name\t$makefile\n") if $name ne $ARGV[1]; 
    2727 
    2828    # Recursively process dependencies