Skip to content

Instantly share code, notes, and snippets.

@saamich
Created January 24, 2017 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saamich/b701c1d45cf877ddc3938c5cb63aec30 to your computer and use it in GitHub Desktop.
Save saamich/b701c1d45cf877ddc3938c5cb63aec30 to your computer and use it in GitHub Desktop.
--- yum.py 2017-01-24 20:21:57.270837376 +0300
+++ yum.py.patched 2017-01-24 19:48:15.540170890 +0300
@@ -801,7 +801,9 @@
return res
elif rc == 100:
# remove incorrect new lines in longer columns in output from yum check-update
- out=re.sub('\n\W+', ' ', out)
+ out=re.sub('i686\n\W+', ' ', out)
+ out=re.sub('noarch\n\W+', ' ', out)
+ out=re.sub('x86_64\n\W+', ' ', out)
available_updates = out.split('\n')
# build update dictionary
for line in available_updates:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment