summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-06 16:53:27 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-06 16:53:27 +0000
commit78f08d2a608ef492767231aefd1be5cd120ab5ee (patch)
tree1823d269e748f2f8b885d1e73288aaccb65db81e
parentbaa02be36beb43fef60a1ba5021d2c8d07b00b89 (diff)
downloadurpmi-78f08d2a608ef492767231aefd1be5cd120ab5ee.tar
urpmi-78f08d2a608ef492767231aefd1be5cd120ab5ee.tar.gz
urpmi-78f08d2a608ef492767231aefd1be5cd120ab5ee.tar.bz2
urpmi-78f08d2a608ef492767231aefd1be5cd120ab5ee.tar.xz
urpmi-78f08d2a608ef492767231aefd1be5cd120ab5ee.zip
describe what user who clicked on a rpm in file explorer is really doing
-rwxr-xr-xurpmi11
1 files changed, 11 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index a0ac6ce8..c83a4173 100755
--- a/urpmi
+++ b/urpmi
@@ -249,6 +249,17 @@ if ($install_src) {
@names = ();
}
+#- question to describe what user who clicked on a rpm in file explorer is really doing
+if ($X && @files == 1 && @names == 0 && $verbose >= 0) {
+ gmessage(
+N("You are about to install the following software package on your computer:
+
+%s
+
+Is it ok to continue?", $files[0]));
+ $? and exit(1);
+}
+
#- prepare bug report.
if ($bug) {
mkdir $bug or $urpm->{fatal}(8, (-d $bug ? N("Directory [%s] already exists, please use another directory for bug report or delete it") : N("Unable to create directory [%s] for bug report"), $bug));