prt-auf: minor optimization in the softdep sorting algorithm
This commit is contained in:
parent
1165eb8dae
commit
646e3b74a3
@ -686,7 +686,7 @@ sub deporder { # returns a sorted list of packages required.
|
||||
# cycle detection
|
||||
( grep /^$s$/, @treewalk ) ? return : push(@treewalk, $s);
|
||||
|
||||
%curdeps = map { $_ => 0 } split /[ ,]/, $DEPENDS{$s};
|
||||
%curdeps = map { $_ => $greedy } split /[ ,]/, $DEPENDS{$s};
|
||||
|
||||
# if the user toggles --softdeps, consider the optional dependencies
|
||||
# that are already installed or are given on the command line
|
||||
|
Loading…
Reference in New Issue
Block a user