From 5fbbc9eb65199e2daf5ab678e717cd5f31702a0b Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 25 Aug 2014 09:01:30 +0300 Subject: [PATCH] fix code --- slpkg/sbo/dependency.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/slpkg/sbo/dependency.py b/slpkg/sbo/dependency.py index 173c9b7d..076c87d8 100755 --- a/slpkg/sbo/dependency.py +++ b/slpkg/sbo/dependency.py @@ -48,14 +48,13 @@ def sbo_dependencies_pkg(name): bol, eol = "\n", "\n" pkg_not_found(bol, name, message, eol) else: - sbo_req = sbo_requires_pkg(sbo_url, name) - dependencies = sbo_req.split() + dependencies = sbo_requires_pkg(sbo_url, name) if dependencies: dep_results.append(dependencies) - for line in dependencies: - sys.stdout.write(".") - sys.stdout.flush() - sbo_dependencies_pkg(line) + for dep in dependencies: + sys.stdout.write(".") + sys.stdout.flush() + sbo_dependencies_pkg(dep) return dep_results except KeyboardInterrupt: print # new line at exit