aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-23 13:57:38 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-23 13:57:38 +0000
commitcb6b1b619890103e719b4920d7a1e4b6dab976cb (patch)
tree853ebe5b69aa9c52a6f896b2b3b7589e418e12ff
parentfb5ba202daea01261ea503c46106d8e3364c3e32 (diff)
downloadrpmdrake-cb6b1b619890103e719b4920d7a1e4b6dab976cb.tar
rpmdrake-cb6b1b619890103e719b4920d7a1e4b6dab976cb.tar.gz
rpmdrake-cb6b1b619890103e719b4920d7a1e4b6dab976cb.tar.bz2
rpmdrake-cb6b1b619890103e719b4920d7a1e4b6dab976cb.tar.xz
rpmdrake-cb6b1b619890103e719b4920d7a1e4b6dab976cb.zip
new option --justdb (new perl-URPM 1.76 & urpmi 4.10.6)
-rwxr-xr-xRpmdrake/init.pm1
-rwxr-xr-xRpmdrake/pkg.pm2
2 files changed, 3 insertions, 0 deletions
diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm
index 5f45502b..efa3d094 100755
--- a/Rpmdrake/init.pm
+++ b/Rpmdrake/init.pm
@@ -42,6 +42,7 @@ N(" --changelog-first display changelog before filelist in the description
N(" --media=medium1,.. limit to given media"),
N(" --merge-all-rpmnew propose to merge all .rpmnew/.rpmsave files found"),
N(" --mode=MODE set mode (install (default), remove, update)"),
+N(" --justdb update the database, but do not modify the filesystem"),
N(" --no-confirmation don't ask first confirmation question in update mode"),
N(" --no-media-update don't update media at startup"),
N(" --no-verify-rpm don't verify packages signatures"),
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index cea3a0aa..bd8abe0f 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -235,6 +235,8 @@ sub open_urpmi_db() {
urpm::set_files($urpm, $::options{'urpmi-root'}->[0]) if $::options{'urpmi-root'}->[0];
urpm::args::set_root($urpm, $::options{'rpm-root'}->[0]) if $::options{'rpm-root'}->[0];
+ $urpm::args::options{justdb} = $::options{justdb};
+
$urpm->{fatal} = sub {
$error_happened = 1;
interactive_msg(N("Fatal error"),