diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-05-04 15:23:16 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-05-04 15:23:16 -0400 |
commit | d24d9823cf254964c575030421c4972c24c45366 (patch) | |
tree | 2a29b53cb2e864d2167e2567828f00372c684c40 /cobbler/cobbler.py | |
parent | 018d57abccb1ad0310792a3018cad652c2bc70c6 (diff) | |
download | third_party-cobbler-d24d9823cf254964c575030421c4972c24c45366.tar.gz third_party-cobbler-d24d9823cf254964c575030421c4972c24c45366.tar.xz third_party-cobbler-d24d9823cf254964c575030421c4972c24c45366.zip |
Switch to syck since Mihai has it packaged now. Check for syck brokenness in main().
Diffstat (limited to 'cobbler/cobbler.py')
-rwxr-xr-x | cobbler/cobbler.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py index 47c8c5a..0b26307 100755 --- a/cobbler/cobbler.py +++ b/cobbler/cobbler.py @@ -9,6 +9,7 @@ library. Consult 'man cobbler' for general info. import os import sys import api +import syck from msg import * class BootCLI: @@ -290,6 +291,11 @@ def main(): """ CLI entry point """ + + # verify syck isn't busted (old syck bindings were) + if not hasattr(syck,"dump"): + raise Exception("needs a more-recent PySyck") + if os.getuid() != 0: # while it's true that we don't technically need root, we do need # permissions on a relatively long list of files that ordinarily |