summaryrefslogtreecommitdiffstats
path: root/layman/action.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/action.py')
-rw-r--r--layman/action.py10
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