[yum-cvs] yum/yum plugins.py,1.34,1.34.2.1
James Bowes
jbowes at linux.duke.edu
Sat Nov 25 22:43:04 UTC 2006
- Previous message: [yum-cvs] yum/yum plugins.py,1.34,1.35
- Next message: [yum-cvs] yum cli.py, 1.244, 1.245 shell.py, 1.33, 1.34 yumcommands.py, 1.1, 1.2 yummain.py, 1.101, 1.102
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv5336/yum
Modified Files:
Tag: yum-3_0_X
plugins.py
Log Message:
Close the file descriptor used by imp in case an exception is thrown.
Index: plugins.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/plugins.py,v
retrieving revision 1.34
retrieving revision 1.34.2.1
diff -u -r1.34 -r1.34.2.1
--- plugins.py 2 Oct 2006 16:34:32 -0000 1.34
+++ plugins.py 25 Nov 2006 22:43:02 -0000 1.34.2.1
@@ -183,7 +183,10 @@
return
fp, pathname, description = imp.find_module(modname, [dir])
- module = imp.load_module(modname, fp, pathname, description)
+ try:
+ module = imp.load_module(modname, fp, pathname, description)
+ finally:
+ fp.close()
# Check API version required by the plugin
if not hasattr(module, 'requires_api_version'):
- Previous message: [yum-cvs] yum/yum plugins.py,1.34,1.35
- Next message: [yum-cvs] yum cli.py, 1.244, 1.245 shell.py, 1.33, 1.34 yumcommands.py, 1.1, 1.2 yummain.py, 1.101, 1.102
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Yum-cvs-commits
mailing list