|
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
|
|---|
| 2 | import sys
|
|---|
| 3 | try:
|
|---|
| 4 | import yum
|
|---|
| 5 | except ImportError:
|
|---|
| 6 | print >> sys.stderr, """\
|
|---|
| 7 | There was a problem importing one of the Python modules
|
|---|
| 8 | required to run yum. The error leading to this problem was:
|
|---|
| 9 |
|
|---|
| 10 | %s
|
|---|
| 11 |
|
|---|
| 12 | Please install a package which provides this module, or
|
|---|
| 13 | verify that the module is installed correctly.
|
|---|
| 14 |
|
|---|
| 15 | It's possible that the above module doesn't match the
|
|---|
| 16 | current version of Python, which is:
|
|---|
| 17 | %s
|
|---|
| 18 |
|
|---|
| 19 | If you cannot solve this problem yourself, please go to
|
|---|
| 20 | the yum faq at:
|
|---|
| 21 | http://yum.baseurl.org/wiki/Faq
|
|---|
| 22 |
|
|---|
| 23 | """ % (sys.exc_value, sys.version)
|
|---|
| 24 | sys.exit(1)
|
|---|
| 25 |
|
|---|
| 26 | sys.path.insert(0, '/@unixroot/usr/share/yum-cli')
|
|---|
| 27 | try:
|
|---|
| 28 | import yummain
|
|---|
| 29 | yummain.user_main(sys.argv[1:], exit_code=True)
|
|---|
| 30 | except 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.