[node-patches] Change in ovirt-node[master]: edit-node: Add missing update functionality
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Wed Apr 23 11:07:43 UTC 2014
Fabian Deutsch has uploaded a new change for review.
Change subject: edit-node: Add missing update functionality
......................................................................
edit-node: Add missing update functionality
Change-Id: I3c7e0aca4a54503ba067e75d80fda8191b45b662
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M tools/edit-node
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/99/26999/1
diff --git a/tools/edit-node b/tools/edit-node
index 7fa409b..0d8eab5 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1089,6 +1089,14 @@
shutil.rmtree(self.dd_dir)
return
+ def _run_yum_update(self, pkgs):
+ yum_cmd = "yum update -y %s" % " ".join(pkgs)
+
+ yum = subprocess.Popen(yum_cmd, shell=True, stdout=PIPE,
+ stderr=STDOUT, preexec_fn=self._chroot)
+ output, err = yum.communicate()
+ print("Update: %s %s" % (output, err))
+
def _run_yum_install(self, pkgs):
print "Running Yum Install"
if not os.path.exists("%s/usr/bin/yum" % self._instroot):
--
To view, visit http://gerrit.ovirt.org/26999
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3c7e0aca4a54503ba067e75d80fda8191b45b662
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list