aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-18 16:28:04 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-18 16:28:04 +0000
commit1ec4287348d95162057a772369fddb2c9047e5e4 (patch)
tree843080b327e048937690e06c0160e12e4759cd80
parentccd2290bf259361cca20b1b1a43b13c33daab0c7 (diff)
downloadrpmdrake-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-xrpmdrake5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index e5ffbe32..2169fb1a 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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);