[yum-cvs] yum/bin yum-updatesd.py,NONE,1.1
Jeremy Katz
katzj at linux.duke.edu
Tue Jun 27 20:53:32 UTC 2006
Update of /home/groups/yum/cvs/yum/bin
In directory login1.linux.duke.edu:/tmp/cvs-serv22301/bin
Added Files:
yum-updatesd.py
Log Message:
* install yum-updatesd wrapper binary in /usr/sbin
* rename /usr/share/yum-cli/yum-updatesd.py to something that can be
imported
--- NEW FILE yum-updatesd.py ---
#!/usr/bin/python
import sys
try:
import yum
except ImportError:
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 go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
""" % (sys.exc_value, sys.version)
sys.exit(1)
sys.path.insert(0, '/usr/share/yum-cli')
try:
import yumupd
yumupd.main()
except KeyboardInterrupt, e:
print >> sys.stderr, "\n\nExiting on user cancel."
sys.exit(1)
More information about the Yum-cvs-commits
mailing list