prt-auf: minor optimization in the softdep sorting algorithm

This commit is contained in:
John McQuah 2023-05-19 17:37:10 -04:00
parent 1165eb8dae
commit 646e3b74a3

View File

@ -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