summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-01-05 13:15:15 +0000
committerDaniel P. Berrange <berrange@redhat.com>2012-01-05 16:08:04 +0000
commitd97b64b6e69e7ac428e578ec148d93e4687a7ffe (patch)
treeb7a304662bc841a1a14818c9b996aada0b633ea8
parent8b79dae67ca2686780d3e3b5863d0578264e92a5 (diff)
Tell users what is about to be installed via sudo
Rather than just giving users the sudo password prompt immediately, actually tell them what is about to be installed, so they know whether it is reasonable to be entering their password. Change-Id: Ic0c1de812be119384753895531a008075b13494e Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--Authors1
-rw-r--r--tools/install_venv.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/Authors b/Authors
index d8cf9d7a0..e6eda9240 100644
--- a/Authors
+++ b/Authors
@@ -34,6 +34,7 @@ Cor Cornelisse <cor@hyves.nl>
Cory Wright <corywright@gmail.com>
Dan Prince <dan.prince@rackspace.com>
Dan Wendlandt <dan@nicira.com>
+Daniel P. Berrange <berrange@redhat.com>
Dave Walker <DaveWalker@ubuntu.com>
David Pravec <David.Pravec@danix.org>
David Subiros <david.perez5@hp.com>
diff --git a/tools/install_venv.py b/tools/install_venv.py
index 6dfcb3f17..0a9fe8252 100644
--- a/tools/install_venv.py
+++ b/tools/install_venv.py
@@ -106,6 +106,7 @@ class UbuntuOneiric(Distro):
"""
The pip installed version of m2crypto has problems on oneiric
"""
+ print "Attempting to install 'python-m2crypto' via apt-get"
run_command(['sudo', 'apt-get', 'install', '-y',
"python-m2crypto"])
@@ -120,6 +121,7 @@ class Fedora(Distro):
check_exit_code=False)[1] == 0
def yum_install(self, pkg, **kwargs):
+ print "Attempting to install '%s' via yum" % pkg
run_command(['sudo', 'yum', 'install', '-y', pkg], **kwargs)
def apply_patch(self, originalfile, patchfile):