summaryrefslogtreecommitdiffstats
path: root/cnucnu.py
diff options
context:
space:
mode:
Diffstat (limited to 'cnucnu.py')
-rwxr-xr-xcnucnu.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/cnucnu.py b/cnucnu.py
index f4a4acb..f679819 100755
--- a/cnucnu.py
+++ b/cnucnu.py
@@ -24,7 +24,7 @@ import os
import cnucnu
import cnucnu.errors as cc_errors
from cnucnu.config import global_config
-from cnucnu.package_list import Repository, PackageList, Package
+from cnucnu.package_list import Repository, PackageList
from cnucnu.checkshell import CheckShell
from cnucnu.bugzilla_reporter import BugzillaReporter
from cnucnu.scm import SCM
@@ -35,6 +35,7 @@ pprint = pp.pprint
log = logging.getLogger('cnucnu')
+
class Actions(object):
def action_report_outdated(self, args):
""" file bugs for outdated packages """
@@ -42,8 +43,6 @@ class Actions(object):
repo = Repository(**global_config.config["repo"])
scm = SCM(**global_config.config["scm"])
- outdated = []
-
pl = PackageList(repo=repo, scm=scm, br=br, **global_config.config["package list"])
for p in pl:
if p.name >= args.start_with:
@@ -74,7 +73,7 @@ class Actions(object):
sys.exit(0)
def action_shell(self, args):
- """ run interavtive shell """
+ """ run interactive shell """
shell = CheckShell(config=global_config)
while True:
if not shell.cmdloop():
@@ -91,7 +90,7 @@ class Actions(object):
def action(self, action):
action = action.replace("-", "_")
- return getattr(self, "action_"+action)
+ return getattr(self, "action_" + action)
def do(self, action, args):
return self.action(action)(args)
@@ -115,7 +114,6 @@ if __name__ == '__main__':
args = parser.parse_args()
-
logging.basicConfig(level=getattr(logging, args.loglevel.upper()))
# default to ./cnucnu.yaml if it exists and no config file is specified on