[node-patches] Change in ovirt-node[master]: edit-node: fix some cmds to work

hadong0720 at gmail.com hadong0720 at gmail.com
Wed Jun 5 07:53:04 UTC 2013


hadong has uploaded a new change for review.

Change subject: edit-node: fix some cmds to work
......................................................................

edit-node: fix some cmds to work

Previously the follow cmds didn't work when
creating post-image processing manifests:
LC_ALL=C rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}
 (%{SIGPGP:pgpsig})
' | sort -u > /manifest-x-x-rpm.txt
LC_ALL=C rpm -qa --qf '%{sourcerpm}
' | sort -u > /manifest-x-x-srpm.txt
LC_ALL=C rpm -qa --qf '%{license}
' | sort -u > /manifest-x-x-license.txt
Now they can work

Change-Id: Ic8160c9590a3309700a11c6ba2ae1c77b9861641
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M tools/edit-node
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/69/15369/1

diff --git a/tools/edit-node b/tools/edit-node
index b9b1508..0810ff9 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -753,9 +753,9 @@
             pkg = "password-set"
         print "Creating Manifests"
         # Create post-image processing manifests
-        cmd = "LC_ALL=C rpm -qa --qf '%{name}-%{version}-%{release}.'" + \
-            "'%{arch} (%{SIGPGP:pgpsig})\n' | sort -u > /manifest-" + \
-            "%s-%s-rpm.txt" % (timestamp, pkg)
+        cmd = "LC_ALL=C rpm -qa --qf '%%{name}-%%{version}-%%{release}." \
+              "%%{arch} (%%{SIGPGP:pgpsig})\n' | sort -u > /manifest-" \
+              "%s-%s-rpm.txt" % (timestamp, pkg)
         f = subprocess.Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT,
                              preexec_fn=self._chroot)
         output, err = f.communicate()


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

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