summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/APT.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-01-16 17:01:42 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-01-16 17:01:42 +0000
commit4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d (patch)
treeb460f80d5555021c632552ab56ec13780078bf4b /src/lib/Client/Tools/APT.py
parent36aa72ac90b0a9635fa7b349698d72635809fc00 (diff)
downloadbcfg2-4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d.tar.gz
bcfg2-4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d.tar.bz2
bcfg2-4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d.zip
Implement more verbose questions for interactive mode (for Packages) (Halfway-resolves Ticket #279)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2684 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/APT.py')
-rw-r--r--src/lib/Client/Tools/APT.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py
index 4c5482208..2dbc3644e 100644
--- a/src/lib/Client/Tools/APT.py
+++ b/src/lib/Client/Tools/APT.py
@@ -56,6 +56,8 @@ class APT(Bcfg2.Client.Tools.PkgTool):
if len(output) == 1 and "no md5sums for" in output[0]:
self.logger.info("Package %s has no md5sums. Cannot verify" % \
entry.get('name'))
+ entry.set('qtext', "Reinstall Package %s-%s to setup md5sums? (y/N) " \
+ % (entry.get('name'), entry.get('version')))
return False
files = []
for item in output:
@@ -72,10 +74,15 @@ class APT(Bcfg2.Client.Tools.PkgTool):
self.logger.info("Package %s failed validation. Bad files are:" % \
entry.get('name'))
self.logger.info(bad)
+ entry.set('qtext',
+ "Reinstall Package %s-%s to fix failing md5sums? (y/N) ")
return False
return True
else:
entry.set('current_version', self.installed[entry.get('name')])
+ entry.set('qtext', "Upgrade Package %s (%s -> %s)? (y/N) " % \
+ (entry.get('name'), entry.get('current_version'),
+ entry.get('version')))
return False
self.logger.info("Package %s not installed" % (entry.get('name')))
entry.set('current_exists', 'false')