diff options
author | Mystery Man <unknown@mandriva.org> | 2001-11-20 23:35:06 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2001-11-20 23:35:06 +0000 |
commit | 9f1dfb0e6b859cba0ebda5f945987ba6c24a596b (patch) | |
tree | d85d9819673c16e4753109862a2eeb9bfa775e7a /perl-install/standalone.pm | |
parent | dee901a3fde82083a630082f04c0139c73ba248f (diff) | |
download | drakx-topic/PCMCIA_CS_DISTRO.tar drakx-topic/PCMCIA_CS_DISTRO.tar.gz drakx-topic/PCMCIA_CS_DISTRO.tar.bz2 drakx-topic/PCMCIA_CS_DISTRO.tar.xz drakx-topic/PCMCIA_CS_DISTRO.zip |
This commit was manufactured by cvs2svn to create branchtopic/PCMCIA_CS_DISTRO
'PCMCIA_CS_DISTRO'.
Diffstat (limited to 'perl-install/standalone.pm')
-rw-r--r-- | perl-install/standalone.pm | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm deleted file mode 100644 index eea2cf5ca..000000000 --- a/perl-install/standalone.pm +++ /dev/null @@ -1,56 +0,0 @@ -package standalone; # $Id$ - -use c; - -$::isStandalone = 1; - -$ENV{SHARE_PATH} ||= "/usr/share"; - -c::setlocale(); -c::bindtextdomain('libDrakX', "/usr/share/locale"); - - - -################################################################################ -package pkgs_interactive; - -sub interactive::do_pkgs { - my ($in) = @_; - bless { in => $in }, 'pkgs_interactive'; -} - -sub install { - my ($o, @l) = @_; - $o->{in}->suspend; - my $wait = $o->{in}->wait_message('', _("Installing packages...")); - my $ret = system('urpmi', '--allow-medium-change', '--auto', '--best-output', @l) == 0; - undef $wait; - $o->{in}->resume; - $ret; -} - -sub is_installed { - my ($o, @l) = @_; - system('rpm', '-q', @l) == 0; -} - -sub remove { - my ($o, @l) = @_; - $o->{in}->suspend; - my $ret = system('rpm', '-e', @l) == 0; - $o->{in}->resume; - $ret; -} - -sub remove_nodeps { - my ($o, @l) = @_; - $o->{in}->suspend; - my $ret = system('rpm', '-e', '--nodeps', @l) == 0; - $o->{in}->resume; - $ret; -} -################################################################################ - -package standalone; - -1; |