source: yum/trunk/bin/yum.py@ 1569

Last change on this file since 1569 was 19, checked in by Yuri Dario, 15 years ago

yum: fix access from other drives.

  • Property svn:eol-style set to native
File size: 811 bytes
Line 
1#!/usr/bin/python
2import sys
3try:
4 import yum
5except ImportError:
6 print >> sys.stderr, """\
7There was a problem importing one of the Python modules
8required to run yum. The error leading to this problem was:
9
10 %s
11
12Please install a package which provides this module, or
13verify that the module is installed correctly.
14
15It's possible that the above module doesn't match the
16current version of Python, which is:
17%s
18
19If you cannot solve this problem yourself, please go to
20the yum faq at:
21 http://yum.baseurl.org/wiki/Faq
22
23""" % (sys.exc_value, sys.version)
24 sys.exit(1)
25
26sys.path.insert(0, '/@unixroot/usr/share/yum-cli')
27try:
28 import yummain
29 yummain.user_main(sys.argv[1:], exit_code=True)
30except KeyboardInterrupt, e:
31 print >> sys.stderr, "\n\nExiting on user cancel."
32 sys.exit(1)
Note: See TracBrowser for help on using the repository browser.