diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2010-02-18 05:12:43 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2010-02-18 05:24:02 +0100 |
commit | 8990dad4eb192d342545589c66555faae88e8301 (patch) | |
tree | 54b84012f2e80537434f38328b07a987b68c003a /layman/action.py | |
parent | f32f4851f604ff3e96d47f58a2044d3ca71a21b2 (diff) | |
download | layman-8990dad4eb192d342545589c66555faae88e8301.tar.gz layman-8990dad4eb192d342545589c66555faae88e8301.tar.bz2 layman-8990dad4eb192d342545589c66555faae88e8301.zip |
Resolve Actions class, allow custom sys.argv for Config class
Diffstat (limited to 'layman/action.py')
-rw-r--r-- | layman/action.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layman/action.py b/layman/action.py index 0fe023c..b8a9c27 100644 --- a/layman/action.py +++ b/layman/action.py @@ -499,11 +499,11 @@ class ListLocal: #=============================================================================== # -# Class Actions +# MAIN # #------------------------------------------------------------------------------- -class Actions: +def main(config): '''Dispatches to the actions the user selected. ''' # Given in order of precedence @@ -516,7 +516,7 @@ class Actions: ('list', List), ('list_local', ListLocal),] - def __init__(self, config): + if True: # A hack to save diff with indentation changes only # Make fetching the overlay list a default action if not 'nofetch' in config.keys(): @@ -539,7 +539,7 @@ class Actions: OUT.die('Failed setting to umask "' + umask + '"!\nError was: ' + str(error)) - for i in self.actions: + for i in actions: OUT.debug('Checking for action', 7) @@ -553,7 +553,7 @@ class Actions: sys.exit(0) else: sys.exit(1) - + #=============================================================================== # # Testing |