diff options
author | xocel <xocel@iquidus.org> | 2012-11-20 11:02:42 +1300 |
---|---|---|
committer | xocel <xocel@iquidus.org> | 2012-11-20 11:02:42 +1300 |
commit | a16764fc281e5662a66b4ef28150c91bd7c22035 (patch) | |
tree | 3b5fed56695ae64a9d1fb735467467c6e946fa87 /sboremove | |
parent | f7c486f7c99b3b33fde96a6ed202fddc4470637b (diff) | |
download | sbotools-a16764fc281e5662a66b4ef28150c91bd7c22035.tar.xz |
upgradex: fixed -f/-z
Diffstat (limited to 'sboremove')
-rwxr-xr-x | sboremove | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -94,12 +94,6 @@ sub confirm_remove ($) { } } -sub is_rootpkg ($) { - # Return 1 if pkg was specified by user. - my $pkg = shift; - return (exists {map { $_ => 1 } @remove}->{$pkg}); -} - # Determine dependencies & warnings if ($no_reqs) { $remove_queue = \@remove; @@ -142,7 +136,7 @@ unless ($non_int) { for my $val (@$req_by) { if ( $val ~~ @confirmed ) { $cnf_count++; } } - my $rootpkg = is_rootpkg $pkg; + my $rootpkg = ($pkg ~~ @remove); if ($cnf_count == @$req_by or $rootpkg or $alwaysask) { say $pkg; if ( @$req_by ) { |