[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:17:21 UTC 2013


Hello Joey Boggs,

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

    http://gerrit.ovirt.org/17035

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: I8f004966d264df19979d67c276c0e9c0b7387bac
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/35/17035/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/17035
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8f004966d264df19979d67c276c0e9c0b7387bac
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