diff options
author | 2010-08-08 00:30:25 +0200 | |
---|---|---|
committer | 2010-08-08 00:30:25 +0200 | |
commit | 3cd0aa8d12bc6cf42e432c8ecacd201367dd3d18 (patch) | |
tree | 74b8b58041b48d8905517986a4139e084be658a2 | |
parent | Fix (diff) | |
download | g-cran-3cd0aa8d12bc6cf42e432c8ecacd201367dd3d18.tar.gz g-cran-3cd0aa8d12bc6cf42e432c8ecacd201367dd3d18.tar.bz2 g-cran-3cd0aa8d12bc6cf42e432c8ecacd201367dd3d18.zip |
Skip empty lines in generate_tree
-rw-r--r-- | g_common/g_common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g_common/g_common.py b/g_common/g_common.py index 73b4a0c..ae16145 100644 --- a/g_common/g_common.py +++ b/g_common/g_common.py @@ -156,6 +156,8 @@ def generate_tree(repo_location,generate_manifest,generate_metadata): packages_list_pipe=subprocess.Popen(driver_conf['exec']+' '+repo_location+' list-packages',shell=True,stdout=subprocess.PIPE) packages=[] for line in iter(packages_list_pipe.stdout.readline,''): + if line=='': + continue category=line[:line.find("/")] package=line[line.find("/")+1:line.find(" ")] version=line[line.find(" ")+1:-1] |