Changeset 9311


Ignore:
Timestamp:
2007-10-14T07:25:50+02:00 (9 years ago)
Author:
nbd
Message:

fix duplicate dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/metadata.pl

    r9150 r9311  
    302302        my $only_dep = shift; 
    303303        my $res; 
     304        my $dep = shift; 
     305        $dep or $dep = {}; 
    304306 
    305307        $depends or return; 
     
    322324                                # will not be checked. To fix this, we simply emit all of FOO's 
    323325                                # depends here as well. 
    324                                 $package{$depend} and $res .= mconf_depends($package{$depend}->{depends}, 1); 
     326                                $package{$depend} and mconf_depends($package{$depend}->{depends}, 1, $dep); 
    325327                        }; 
    326328                        $flags =~ /@/ or $depend = "PACKAGE_$depend"; 
    327329                } 
     330                $dep->{$depend} =~ /select/ or $dep->{$depend} = $m; 
     331        } 
     332        foreach my $depend (keys %$dep) { 
     333                my $m = $dep->{$depend}; 
    328334                $res .= "\t\t$m $depend\n"; 
    329335        } 
Note: See TracChangeset for help on using the changeset viewer.