Изменено чтение новостей

Mike Khiretskiy 9 years ago
parent 772f424bee
commit 147ed8a8ae

@ -686,10 +686,12 @@ class Builder(Update):
"""
eselect_command = "/usr/bin/eselect"
p = self.chroot_process(builder_path, eselect_command, "--colour=yes",
"news", "read", "new", stderr=STDOUT)
"news", "list", stderr=STDOUT)
self.printPre(convert_console_to_xml(
p.read()).replace(" ", "  "))
return True
p = self.chroot_process(builder_path, eselect_command, "--colour=yes",
"news", "read", "new", stderr=STDOUT)
return p.success()
def check_obsolete(self, builder_path):
"""

@ -292,7 +292,8 @@ class ClBuilderUpdateAction(Action):
'depend': Tasks.has("update_other")
},
{'name': 'update_other:reading_news',
'method': 'Builder.reading_news(cl_builder_path)'
'method': 'Builder.reading_news(cl_builder_path)',
'essential': False
},
{'name': 'update_other:check_obsolete',
'method': 'Builder.check_obsolete(cl_builder_path)'

Loading…
Cancel
Save