summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone.pm')
-rw-r--r--perl-install/standalone.pm15
1 files changed, 14 insertions, 1 deletions
diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm
index 408088b33..7cb1d2dd7 100644
--- a/perl-install/standalone.pm
+++ b/perl-install/standalone.pm
@@ -36,9 +36,22 @@ sub install_if {
sub remove {
my ($o, @l) = @_;
$o->{in}->suspend;
- my $ret = system('rpm', '-e ', @l);
+ my $ret = system('rpm', '-e', @l);
$o->{in}->resume;
$ret;
}
+sub remove_nodeps {
+ my ($o, @l) = @_;
+ $o->{in}->suspend;
+ my $ret = system('rpm', '-e', '--nodeps', @l);
+ $o->{in}->resume;
+ $ret;
+}
+
+sub is_installed {
+ my ($o, $pkg) = @_;
+ system('rpm', '-q', $pkg) == 0;
+}
+
1;