From cfd8982b5f11cde95613fc85c7478ae45731a346 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 8 Jan 2016 16:49:59 +0100 Subject: [PATCH] for fedora23 nodes - yet again it appears that right after installation fedora23 nodes do not know about the PlanetLab group at all so just trying to upgrade that group doesn't do anything --- NodeUpdate.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/NodeUpdate.py b/NodeUpdate.py index 09183fb..fccfcb3 100755 --- a/NodeUpdate.py +++ b/NodeUpdate.py @@ -130,14 +130,19 @@ class YumDnf: def update_group(self, group): # it is important to invoke dnf group *upgrade* and not *update* # because the semantics of groups has changed within dnf + overall = True if HAS_DNF: - cmd = \ - "{} {} -y group upgrade {}".format(self.command, self.options, group) + cmd = "{} {} -y group install {}".format(self.command, self.options, group) + Message("Invoking {}".format(cmd)) + if os.system(cmd) != 0: overall = False + cmd = "{} {} -y group upgrade {}".format(self.command, self.options, group) + Message("Invoking {}".format(cmd)) + if os.system(cmd) != 0: overall = False else: - cmd = \ - "{} {} -y groupinstall {}".format(self.command, self.options, group) - Message("Invoking {}".format(cmd)) - return os.system(cmd) == 0 + cmd = "{} {} -y groupinstall {}".format(self.command, self.options, group) + Message("Invoking {}".format(cmd)) + if os.system(cmd) != 0: overall = False + return overall ########## update the whole system def update_system(self): -- 2.43.0