[node-patches] Change in ovirt-node[master]: edit-node: need get the basename of install plugin pkg
hadong0720 at gmail.com
hadong0720 at gmail.com
Tue Nov 5 07:22:42 UTC 2013
hadong has uploaded a new change for review.
Change subject: edit-node: need get the basename of install plugin pkg
......................................................................
edit-node: need get the basename of install plugin pkg
Change-Id: I6725fdaacc65eb0e2bd0f50e80cbc6aab81731f4
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1026635
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M tools/edit-node
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/93/20893/1
diff --git a/tools/edit-node b/tools/edit-node
index 7a78f2f..837cf0a 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -801,7 +801,7 @@
if options.install or options.plugin or options.install_dup:
plugin_info_dir = "%s/etc/ovirt-plugins.d" % self._instroot
os.system("mkdir -p %s" % plugin_info_dir)
- pkgfilename = re.sub("\.(rpm)$", "", pkg)
+ pkgfilename = re.sub("\.(rpm)$", "", os.path.basename(pkg))
# get version-release
cmd = "rpm -q %s --qf '%%{version}-%%{release}.%%{arch}\n'" \
% pkgfilename
--
To view, visit http://gerrit.ovirt.org/20893
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6725fdaacc65eb0e2bd0f50e80cbc6aab81731f4
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