-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* install yum-updatesd wrapper binary in /usr/sbin
* rename /usr/share/yum-cli/yum-updatesd.py to something that can be imported
- Loading branch information
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/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:https://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) |