diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-07 20:46:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-07 20:46:40 +0000 |
commit | c617573f7ca65da803615991419db926420f22b1 (patch) | |
tree | bb3d7d440cbeec7fee53d0751c5232f31a4c8548 /urpm/args.pm | |
parent | c54d9828bb2eb4a38197b8d656aefd52c9c9ea36 (diff) | |
download | urpmi-c617573f7ca65da803615991419db926420f22b1.tar urpmi-c617573f7ca65da803615991419db926420f22b1.tar.gz urpmi-c617573f7ca65da803615991419db926420f22b1.tar.bz2 urpmi-c617573f7ca65da803615991419db926420f22b1.tar.xz urpmi-c617573f7ca65da803615991419db926420f22b1.zip |
o handle "unrequested orphans" (similar to "deborphan")
Diffstat (limited to 'urpm/args.pm')
-rw-r--r-- | urpm/args.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index 54013793..5b98d03a 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -84,6 +84,7 @@ my %options_spec = ( 'gui' => \$::gui, 'auto-select' => \$::auto_select, 'auto-update' => sub { $::auto_update = $::auto_select = 1 }, + 'auto-orphans' => \$options{auto_orphans}, 'no-remove|no-uninstall' => \$::no_remove, 'no-install|noinstall' => \$::no_install, 'keep!' => sub { $urpm->{options}{keep} = $_[1] }, @@ -409,12 +410,12 @@ foreach my $k ('allow-medium-change', 'auto', 'auto-select', 'force', 'expect-in $options_spec{gurpmi2} = $options_spec{gurpmi}; foreach my $k ("help|h", "version", "no-locales", "test!", "force", "root=s", "use-distrib=s", - 'repackage', 'noscripts', 'auto', + 'repackage', 'noscripts', 'auto', 'auto-orphans', "parallel=s") { $options_spec{urpme}{$k} = $options_spec{urpmi}{$k}; } -foreach my $k ("root=s", "nolock", "use-distrib=s", "skip=s", "prefer=s", "synthesis=s", 'suggests', 'no-suggests', 'allow-suggests') +foreach my $k ("root=s", "nolock", "use-distrib=s", "skip=s", "prefer=s", "synthesis=s", 'suggests', 'no-suggests', 'allow-suggests', 'auto-orphans') { $options_spec{urpmq}{$k} = $options_spec{urpmi}{$k}; } |