[yum-cvs] yum cli.py,1.168,1.169
Menno Smits
mjs at login.linux.duke.edu
Mon Mar 21 12:37:15 UTC 2005
- Previous message: [yum-cvs] yum/yum pgpmsg.py,1.3,1.4
- Next message: [yum-cvs] yum/yum plugins.py, NONE, 1.1 __init__.py, 1.98, 1.99 config.py, 1.49, 1.50 constants.py, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv19726
Modified Files:
cli.py
Log Message:
Initial yum plugin work.
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -r1.168 -r1.169
--- cli.py 15 Mar 2005 07:43:03 -0000 1.168
+++ cli.py 21 Mar 2005 12:37:13 -0000 1.169
@@ -170,7 +170,6 @@
# we'd like to have a log object now
self.log=Logger(threshold=self.conf.getConfigOption('debuglevel'), file_object =
sys.stdout)
-
# syslog-style log
if self.conf.getConfigOption('uid') == 0:
logpath = os.path.dirname(self.conf.logfile)
@@ -678,7 +677,10 @@
cb = callback.RPMInstallCallback(output=output)
cb.filelog = self.filelog # needed for log file output
cb.tsInfo = self.tsInfo
-
+
+ if self.plugins.run('pretrans') != 0:
+ return
+
# run ts
self.log(2, 'Running Transaction')
@@ -693,6 +695,9 @@
# close things
self.log(1, self.postTransactionOutput())
+ if self.plugins.run('posttrans') != 0:
+ return
+
def gpgsigcheck(self, pkgs):
'''Perform GPG signature verification on the given packages, installing
keys if possible
- Previous message: [yum-cvs] yum/yum pgpmsg.py,1.3,1.4
- Next message: [yum-cvs] yum/yum plugins.py, NONE, 1.1 __init__.py, 1.98, 1.99 config.py, 1.49, 1.50 constants.py, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Yum-cvs-commits
mailing list