summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/os/yum.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/packaging/os/yum.py b/packaging/os/yum.py
index 7602b248..131144d8 100644
--- a/packaging/os/yum.py
+++ b/packaging/os/yum.py
@@ -800,6 +800,8 @@ def latest(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
res['results'].append('Nothing to do here, all packages are up to date')
return res
elif rc == 100:
+ # remove incorrect new lines in longer columns in output from yum check-update
+ out=re.sub('\n\W+', ' ', out)
available_updates = out.split('\n')
# build update dictionary
for line in available_updates: