summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-11 08:59:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-11 08:59:14 +0000
commit9a34ae4f57612b13681b7dce6a730780f7521a3e (patch)
treec46211b5a4f0132db29e09955de54afded4dea05
parent7d3a43d3eba667ca4291238633f87c4f98535998 (diff)
downloadurpmi-9a34ae4f57612b13681b7dce6a730780f7521a3e.tar
urpmi-9a34ae4f57612b13681b7dce6a730780f7521a3e.tar.gz
urpmi-9a34ae4f57612b13681b7dce6a730780f7521a3e.tar.bz2
urpmi-9a34ae4f57612b13681b7dce6a730780f7521a3e.tar.xz
urpmi-9a34ae4f57612b13681b7dce6a730780f7521a3e.zip
- urpme
o add --justdb
-rw-r--r--NEWS3
-rw-r--r--pod/urpme.8.pod4
-rw-r--r--urpm/args.pm2
-rw-r--r--urpme2
-rw-r--r--urpmi.bash-completion2
5 files changed, 11 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index ee858ccf..00623c01 100644
--- a/NEWS
+++ b/NEWS
@@ -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};
diff --git a/urpme b/urpme
index aab72004..2550e889 100644
--- a/urpme
+++ b/urpme
@@ -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