diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-01-10 00:33:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-01-10 00:33:11 +0000 |
commit | 1883acd25096f34779cce40ebba76c5860964f0d (patch) | |
tree | 8f977a481321620d53a4af0d9e48a1898d481397 /perl-install/standalone.pm | |
parent | 1bd398a1b3eae79192e9c0fce06173ec195caf69 (diff) | |
download | drakx-1883acd25096f34779cce40ebba76c5860964f0d.tar drakx-1883acd25096f34779cce40ebba76c5860964f0d.tar.gz drakx-1883acd25096f34779cce40ebba76c5860964f0d.tar.bz2 drakx-1883acd25096f34779cce40ebba76c5860964f0d.tar.xz drakx-1883acd25096f34779cce40ebba76c5860964f0d.zip |
use standalone and standalone::pkgs_install
Diffstat (limited to 'perl-install/standalone.pm')
-rw-r--r-- | perl-install/standalone.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm new file mode 100644 index 000000000..c1893fe99 --- /dev/null +++ b/perl-install/standalone.pm @@ -0,0 +1,13 @@ +package standalone; # $Id$ + +$::isStandalone = 1; + + +sub pkgs_install { + my ($in, @l) = @_; + $in->suspend; + system('urpmi --auto --best-output ' . join(' ', @l)); + $in->resume; +} + +1; |