[yum-cvs] yum/bin yum.py,1.5,1.6
Seth Vidal
skvidal at login.linux.duke.edu
Fri Aug 5 05:56:38 UTC 2005
Update of /home/groups/yum/cvs/yum/bin
In directory login:/tmp/cvs-serv17751/bin
Modified Files:
yum.py
Log Message:
check in Hans-Peter Jansen's patch to help make the error output when a
needed module is missing a bit easier.
Index: yum.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/bin/yum.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- yum.py 4 Jun 2005 05:13:47 -0000 1.5
+++ yum.py 5 Aug 2005 05:56:36 -0000 1.6
@@ -3,10 +3,22 @@
try:
import yum
except ImportError:
- print >> sys.stderr, "The yum libraries do not seem to be available \
-on your system for this version of python ", sys.version
- print >> sys.stderr, "Please make sure the package you used to install \
-yum was built for your install of python."
+ print >> sys.stderr, """\
+There was a problem importing one of the Python modules
+required to run yum. The error leading to this problem was:
+
+ %s
+
+Please install a package which provides this module, or
+verify that the module is installed correctly.
+
+It's possible that the above module doesn't match the
+current version of Python, which is:
+%s
+
+If you cannot solve this problem yourself, please send this
+message to <yum at lists.linux.duke.edu>.
+""" % (sys.exc_value, sys.version)
sys.exit(1)
sys.path.insert(0, '/usr/share/yum-cli')
More information about the Yum-cvs-commits
mailing list