summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-23 13:24:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-23 13:24:19 +0000
commita3cfc3441593f8ed8dd8ed636502e6f115fb5177 (patch)
tree072b5bf07f5dcca9a3c67095bd43c5cb6b086c69
parent73541f4cf13f9bf1d61f0ec98ebd6e5601d1661b (diff)
downloadurpmi-a3cfc3441593f8ed8dd8ed636502e6f115fb5177.tar
urpmi-a3cfc3441593f8ed8dd8ed636502e6f115fb5177.tar.gz
urpmi-a3cfc3441593f8ed8dd8ed636502e6f115fb5177.tar.bz2
urpmi-a3cfc3441593f8ed8dd8ed636502e6f115fb5177.tar.xz
urpmi-a3cfc3441593f8ed8dd8ed636502e6f115fb5177.zip
- urpmi
o new option --justdb (new perl-URPM 1.76)
-rw-r--r--NEWS1
-rw-r--r--pod/urpmi.8.pod4
-rw-r--r--urpm/args.pm1
-rw-r--r--urpm/install.pm2
-rw-r--r--urpm/main_loop.pm1
-rwxr-xr-xurpmi1
-rw-r--r--urpmi.bash-completion2
7 files changed, 10 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 510463b9..9f963979 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- urpmi
o fix --bug when there is no /etc/urpmi/prefer.list file
+ o new option --justdb (new perl-URPM 1.76)
- urpmf
o display "usage" when no <pattern-expression> is given (#32658)
diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod
index a4fef950..fc138758 100644
--- a/pod/urpmi.8.pod
+++ b/pod/urpmi.8.pod
@@ -190,6 +190,10 @@ Proposes a verbose mode with various messages.
With this option, urpmi will not install "suggested" packages.
By default, urpmi will install (newly) suggested packages.
+=item B<--justdb>
+
+Update only the database, not the filesystem.
+
=item B<--replacepkgs>
Force installing the packages even though they are already installed.
diff --git a/urpm/args.pm b/urpm/args.pm
index b11094e1..adbb49d9 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -95,6 +95,7 @@ my %options_spec = (
$urpm->{options}{'priority-upgrade'} = '';
},
force => \$::force,
+ justdb => \$options{justdb},
replacepkgs => \$options{replacepkgs},
'no-suggests' => sub { $urpm->{options}{'no-suggests'} = 1 },
'allow-nodeps' => sub { $urpm->{options}{'allow-nodeps'} = 1 },
diff --git a/urpm/install.pm b/urpm/install.pm
index e08be38b..7e33dd74 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -130,7 +130,7 @@ sub get_README_files {
#- callback_inst, callback_trans, callback_report_uninst,
#- post_clean_cache, verbose
#- (more options for trans->run)
-#- excludedocs, nosize, noscripts, oldpackage, repackage, replacepkgs, ignorearch
+#- excludedocs, nosize, noscripts, oldpackage, repackage, replacepkgs, justdb, ignorearch
sub install {
my ($urpm, $remove, $install, $upgrade, %options) = @_;
$options{translate_message} = 1;
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index 28aeb5f6..c0d7e25c 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -161,6 +161,7 @@ foreach my $set (@{$state->{transaction} || []}) {
repackage => $urpm->{options}{repackage},
post_clean_cache => $urpm->{options}{'post-clean'},
oldpackage => $state->{oldpackage},
+ justdb => $options{justdb},
replacepkgs => $options{replacepkgs},
nosize => $urpm->{options}{ignoresize},
ignorearch => $urpm->{options}{ignorearch},
diff --git a/urpmi b/urpmi
index b910617b..6caf4ee1 100755
--- a/urpmi
+++ b/urpmi
@@ -102,6 +102,7 @@ usage:
") . N(" --install-src - install only source package (no binaries).
") . N(" --clean - remove rpm from cache before anything else.
") . N(" --noclean - don't clean rpms from cache.
+") . N(" --justdb - update only the rpm db, not the filesystem.
") . N(" --replacepkgs - force installing packages which are already installed.
") . N(" --force - force invocation even if some packages do not exist.
") . N(" --allow-nodeps - allow asking user to install packages without
diff --git a/urpmi.bash-completion b/urpmi.bash-completion
index 90a584d7..5748b4dc 100644
--- a/urpmi.bash-completion
+++ b/urpmi.bash-completion
@@ -108,7 +108,7 @@ _urpmi()
# add dangereous option for everything else as rurpmi
if [[ ${COMP_WORDS[0]} != *rurpmi ]]; then
options="$options --root --use-distrib --env \
- --replacepkgs \
+ --replacepkgs --justdb \
--allow-nodeps --allow-force --no-suggests --force \
--noscripts --auto-update --keep --nokeep \
--verify-rpm"