[node-patches] Change in ovirt-node[master]: remove "-a" parameter from rpm cmd
hadong0720 at gmail.com
hadong0720 at gmail.com
Mon Aug 25 09:21:25 UTC 2014
hadong has uploaded a new change for review.
Change subject: remove "-a" parameter from rpm cmd
......................................................................
remove "-a" parameter from rpm cmd
remove "-a" parameter from rpm cmd to make sure get get pkg name and
version-release.
Change-Id: I5407eefe947845535bbc77a3e6fb5b03859c7124
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1133482
Signed-off-by: hadong <hadong at redhat.com>
---
M tools/edit-node
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/87/31887/1
diff --git a/tools/edit-node b/tools/edit-node
index 573df52..831efe0 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -678,7 +678,7 @@
pkgfilename = re.sub("\.(rpm)$", "", os.path.basename(pkg))
# get name#version-release
- cmd = "rpm -qa %s --qf '%%{name}#%%{version}-" \
+ cmd = "rpm -q %s --qf '%%{name}#%%{version}-" \
"%%{release}.%%{arch}\n'" % pkgfilename
f = subprocess.Popen(cmd,
shell=True,
--
To view, visit http://gerrit.ovirt.org/31887
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5407eefe947845535bbc77a3e6fb5b03859c7124
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