diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-18 16:28:04 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-18 16:28:04 +0000 |
commit | 1ec4287348d95162057a772369fddb2c9047e5e4 (patch) | |
tree | 843080b327e048937690e06c0160e12e4759cd80 | |
parent | ccd2290bf259361cca20b1b1a43b13c33daab0c7 (diff) | |
download | rpmdrake-1ec4287348d95162057a772369fddb2c9047e5e4.tar rpmdrake-1ec4287348d95162057a772369fddb2c9047e5e4.tar.gz rpmdrake-1ec4287348d95162057a772369fddb2c9047e5e4.tar.bz2 rpmdrake-1ec4287348d95162057a772369fddb2c9047e5e4.tar.xz rpmdrake-1ec4287348d95162057a772369fddb2c9047e5e4.zip |
Honor the prohibit-remove option, like urpme
-rwxr-xr-x | rpmdrake | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1729,7 +1729,9 @@ you may now inspect some in order to take actions:"), sub get_installed_pkgs { my $wait = wait_msg_with_banner(N("Please wait, reading packages database...")); gtkflush(); - my @base = qw(basesystem); + my $urpm = urpm->new; + $urpm->read_config; + my @base = ("basesystem", split /,\s*/, $urpm->{global_config}{'prohibit-remove'}); my (%base, %basepackages); my $db = db(); my $sig_handler = sub { undef $db; exit 3 }; @@ -1763,7 +1765,6 @@ sub get_installed_pkgs { $pkg->pack_header; }); statusbar_msg_remove($wait); - my $urpm = urpm->new; my $group; if ($options{parallel} && (($group) = @{$options{parallel}})) { $urpm->configure(parallel => $group); |