[node-patches] Change in ovirt-node[master]: Fix previous commit http://gerrit.ovirt.org/#/c/25470/
hadong0720 at gmail.com
hadong0720 at gmail.com
Tue Apr 15 06:10:21 UTC 2014
hadong has uploaded a new change for review.
Change subject: Fix previous commit http://gerrit.ovirt.org/#/c/25470/
......................................................................
Fix previous commit http://gerrit.ovirt.org/#/c/25470/
Previous commit:http://gerrit.ovirt.org/#/c/25470/
to add --update into edit-node to update packages.but this patch
didn't achieve "_run_yum_update" functions
Now add "_run_yum_update" function into edit-node tools to make
this --update options really could work.`
Change-Id: I778d4255e6b0f3d76e576675356e8e11263ed935
Signed-off-by: hadong <hadong at redhat.com>
---
M tools/edit-node
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/78/26778/1
diff --git a/tools/edit-node b/tools/edit-node
index 7fa409b..242ce16 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -883,7 +883,7 @@
self._setup_dns()
if not self._setup_yum_repo(options):
return False
- if not self._run_yum_update(options.update.split(",")):
+ if not self._run_yum_update(options.update):
return False
else:
self._cleanup_editing()
@@ -1144,6 +1144,9 @@
os.system("rm -rf %s/tmp/yumrepo" % self._instroot)
return True
+ def _run_yum_update(self, pkgs):
+ self._run_yum_install(pkgs)
+
def _install_dup(self, options):
self._setup_dns()
if self._setup_yum_repo(options):
--
To view, visit http://gerrit.ovirt.org/26778
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I778d4255e6b0f3d76e576675356e8e11263ed935
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>
More information about the node-patches
mailing list