diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | pod/urpme.8.pod | 4 | ||||
-rw-r--r-- | urpm/args.pm | 2 | ||||
-rw-r--r-- | urpme | 2 | ||||
-rw-r--r-- | urpmi.bash-completion | 2 |
5 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,6 @@ +- urpme + o add --justdb + Version 6.1 - 10 July 2008, by Pascal "Pixel" Rigaux - all tools diff --git a/pod/urpme.8.pod b/pod/urpme.8.pod index 27cb5468..c61a8827 100644 --- a/pod/urpme.8.pod +++ b/pod/urpme.8.pod @@ -50,6 +50,10 @@ Test deinstallation of packages but do not modify the system. Force invocation even if some packages do not exist. +=item B<--justdb> + +Update only the database, not the filesystem. + =item B<--noscripts> Don't execute the scriptlets. This is equivalent to B<rpm --noscripts>. diff --git a/urpm/args.pm b/urpm/args.pm index a8b18e42..8ca1ad4c 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -410,7 +410,7 @@ foreach my $k ('allow-medium-change', 'auto', 'auto-select', 'force', 'expect-in $options_spec{gurpmi2} = $options_spec{gurpmi}; foreach my $k ("test!", "force", "root=s", "use-distrib=s", - 'repackage', 'noscripts', 'auto', 'auto-orphans', + 'repackage', 'noscripts', 'auto', 'auto-orphans', 'justdb', "parallel=s") { $options_spec{urpme}{$k} = $options_spec{urpmi}{$k}; @@ -52,6 +52,7 @@ usage: ") . N(" --repackage - Re-package the files before erasing ") . N(" --root - use another root for rpm removal. ") . N(" --urpmi-root - use another root for urpmi db & rpm installation. +") . N(" --justdb - update only the rpm db, not the filesystem. ") . N(" --noscripts - do not execute package scriptlet(s). ") . N(" --use-distrib - configure urpme on the fly from a distrib tree, useful to (un)install a chroot with --root option. @@ -167,6 +168,7 @@ print $test ? my %remove_options = ( test => $test, force => $force, + justdb => $options{justdb}, urpm::install::options($urpm), ); my @errors = $parallel diff --git a/urpmi.bash-completion b/urpmi.bash-completion index 7d25a428..752606e7 100644 --- a/urpmi.bash-completion +++ b/urpmi.bash-completion @@ -189,7 +189,7 @@ _urpme() if [[ "$cur" == -* ]]; then # return list of available options COMPREPLY=( $( compgen -W "$common_options -a --auto --test \ - --auto-orphans --parallel --noscripts" -- $cur ) ) + --auto-orphans --parallel --justdb --noscripts" -- $cur ) ) else # return list of available packages _rpm_installed_packages |