aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"),