From 921d8cef835352cf4e576c6dbef76d5287c03a83 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Tue, 8 Dec 2020 13:27:47 -0500 Subject: [PATCH] Comment out part of the splitter which does not work with libmodulemd -2.9 Signed-off-by: Stephen Smoogen --- roles/grobisplitter/files/splitter.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/roles/grobisplitter/files/splitter.py b/roles/grobisplitter/files/splitter.py index e4c15f3adf..5b806ed28f 100755 --- a/roles/grobisplitter/files/splitter.py +++ b/roles/grobisplitter/files/splitter.py @@ -359,17 +359,18 @@ def _dump_modulemd(modname, yaml_file): if defs: new_idx.add_defaults(defs) - # libmodulemd doesn't currently expose the get_translation() - # function, but that will be added in 2.8.0 - try: - # Add the translation object - translation = mod.get_translation() - if translation: - new_idx.add_translation(translation) - except AttributeError as e: - # This version of libmodulemd does not yet support this function. - # Just ignore it. - pass + ## This is in the upstream but does not work in 2.9. commented out + # # libmodulemd doesn't currently expose the get_translation() + # # function, but that will be added in 2.8.0 + # try: + # # Add the translation object + # translation = mod.get_translation() + # if translation: + # new_idx.add_translation(translation) + # except AttributeError as e: + # # This version of libmodulemd does not yet support this function. + # # Just ignore it. + # pass # Write out the file try: