[node-patches] Change in ovirt-node[node-3.0]: edit-node: make /etc/yum.repos.d directory

mburns at redhat.com mburns at redhat.com
Wed Jul 17 17:16:45 UTC 2013


Hello Joey Boggs,

I'd like you to do a code review.  Please visit

    http://gerrit.ovirt.org/17034

to review the following change.

Change subject: edit-node: make /etc/yum.repos.d directory
......................................................................

edit-node: make /etc/yum.repos.d directory

Change-Id: If41b7e35b22a7d0bfff1745e6d02b6e566dac289
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M tools/edit-node
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/34/17034/1

diff --git a/tools/edit-node b/tools/edit-node
index cfd44de..a307436 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1112,6 +1112,9 @@
         else:
             if os.path.isfile(options.repo) and not \
                     options.repo.lower().endswith(".iso"):
+                cmd = "mkdir -p %s/etc/yum.repos.d" % self._instroot
+                f = subprocess.Popen(cmd, shell=True, stdout=PIPE,
+                                     stderr=STDOUT)
                 cmd = "touch /etc/yum.repos.d/plugin.repo"
                 f = subprocess.Popen(cmd, shell=True, stdout=PIPE,
                                      stderr=STDOUT,


-- 
To view, visit http://gerrit.ovirt.org/17034
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If41b7e35b22a7d0bfff1745e6d02b6e566dac289
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: node-3.0
Gerrit-Owner: Michael Burns <mburns at redhat.com>
Gerrit-Reviewer: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list