summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/remove-unused-packages
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-09-05 14:35:49 +0000
committerOlivier Blin <oblin@mandriva.com>2008-09-05 14:35:49 +0000
commit44e35ec2d2ad1a8c8808852b4cb52dcac932e4fd (patch)
treee989382f139313ad36cd4fef0cad2bcc80de269c /perl-install/standalone/remove-unused-packages
parentb998ce73afeffd221b2eb42955187006dc5f22e0 (diff)
downloaddrakx-backup-do-not-use-44e35ec2d2ad1a8c8808852b4cb52dcac932e4fd.tar
drakx-backup-do-not-use-44e35ec2d2ad1a8c8808852b4cb52dcac932e4fd.tar.gz
drakx-backup-do-not-use-44e35ec2d2ad1a8c8808852b4cb52dcac932e4fd.tar.bz2
drakx-backup-do-not-use-44e35ec2d2ad1a8c8808852b4cb52dcac932e4fd.tar.xz
drakx-backup-do-not-use-44e35ec2d2ad1a8c8808852b4cb52dcac932e4fd.zip
merge remove-unused-hardware-packages and remove-unselected-locales
helpers into a new remove-unused-packages tool (and make it reusable)
Diffstat (limited to 'perl-install/standalone/remove-unused-packages')
-rwxr-xr-xperl-install/standalone/remove-unused-packages11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/standalone/remove-unused-packages b/perl-install/standalone/remove-unused-packages
new file mode 100755
index 000000000..5d3989414
--- /dev/null
+++ b/perl-install/standalone/remove-unused-packages
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+
+use lib qw(/usr/lib/libDrakX);
+use pkgs;
+use interactive;
+use do_pkgs;
+use standalone;
+
+my $in = interactive->vnew('su');
+my $do_pkgs = do_pkgs->do_pkgs($in);
+pkgs::remove_unused_packages($in, $do_pkgs);