commit:     04c567f09d9230f65fbe37ccd29789c6d010dec5
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Sun May 17 02:51:31 2015 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri Jun 19 19:51:47 2015 +0000
URL:        https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=04c567f0

config.py: Message clean ups

 WebappConfig/config.py | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index 37c2982..8d6a0ae 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -1001,7 +1001,8 @@ class Config:
                 if len(args) > 1:
                     argsvr = args[1].split('.')
                     if len(argsvr) == 1:
-                        OUT.die('Invalid package version: %(pvr)s' % {'pvr': 
args[1]})
+                        OUT.die('Invalid package version: %(pvr)s'
+                                % {'pvr': args[1]})
 
                     pvr = ''
                     for i in range(0, len(argsvr)):
@@ -1384,17 +1385,15 @@ class Config:
             # upgrade
 
             # okay - what do we have?
-
-            OUT.info('Removing '
-                     + old['WEB_CATEGORY'] + '/'
-                     + old['WEB_PN'] + '-'
-                     + old['WEB_PVR'] + ' from '
-                     + self.installdir() + '\n'
-                     + '  Installed by '
-                     + old['WEB_INSTALLEDBY'] + ' on '
-                     + old['WEB_INSTALLEDDATE'] + '\n'
-                     +'  Config files owned by '
-                     + old['WEB_INSTALLEDFOR'], 1)
+            msg = 'Removing '
+            if old['WEB_CATEGORY']:
+                msg += old['WEB_CATEGORY'] + '/'
+            msg += old['WEB_PN'] + '-' + old['WEB_PVR'] + ' from '\
+                   + self.installdir() + '\n  Installed by '\
+                   + old['WEB_INSTALLEDBY'] + ' on ' + 
old['WEB_INSTALLEDDATE']\
+                   + '\n  Config files owned by ' + old['WEB_INSTALLEDFOR']
+
+            OUT.info(msg, 1)
 
             content = self.create_content(old['WEB_CATEGORY'], old['WEB_PN'], 
old['WEB_PVR'])
             content.read()

Reply via email to