From 147ed8a8ae4cab253ad130630f28e748b7234259 Mon Sep 17 00:00:00 2001 From: Mike Khiretskiy Date: Wed, 23 Sep 2015 13:22:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE=20=D1=87=D1=82=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BE=D1=81=D1=82=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/builder/builder.py | 6 ++++-- pym/builder/utils/cl_builder_update.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pym/builder/builder.py b/pym/builder/builder.py index 6c07a38..aeea23f 100644 --- a/pym/builder/builder.py +++ b/pym/builder/builder.py @@ -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): """ diff --git a/pym/builder/utils/cl_builder_update.py b/pym/builder/utils/cl_builder_update.py index 213d754..64a2805 100644 --- a/pym/builder/utils/cl_builder_update.py +++ b/pym/builder/utils/cl_builder_update.py @@ -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)'