Comment out part of the splitter which does not work with libmodulemd -2.9
Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
This commit is contained in:
parent
578612992a
commit
921d8cef83
1 changed files with 12 additions and 11 deletions
|
@ -359,17 +359,18 @@ def _dump_modulemd(modname, yaml_file):
|
||||||
if defs:
|
if defs:
|
||||||
new_idx.add_defaults(defs)
|
new_idx.add_defaults(defs)
|
||||||
|
|
||||||
# libmodulemd doesn't currently expose the get_translation()
|
## This is in the upstream but does not work in 2.9. commented out
|
||||||
# function, but that will be added in 2.8.0
|
# # libmodulemd doesn't currently expose the get_translation()
|
||||||
try:
|
# # function, but that will be added in 2.8.0
|
||||||
# Add the translation object
|
# try:
|
||||||
translation = mod.get_translation()
|
# # Add the translation object
|
||||||
if translation:
|
# translation = mod.get_translation()
|
||||||
new_idx.add_translation(translation)
|
# if translation:
|
||||||
except AttributeError as e:
|
# new_idx.add_translation(translation)
|
||||||
# This version of libmodulemd does not yet support this function.
|
# except AttributeError as e:
|
||||||
# Just ignore it.
|
# # This version of libmodulemd does not yet support this function.
|
||||||
pass
|
# # Just ignore it.
|
||||||
|
# pass
|
||||||
|
|
||||||
# Write out the file
|
# Write out the file
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue