LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cfengine-packages.diff of Package cfengine (Project home:danci1973)

diff -uNr cfengine-2.1.10.orig/src/package.c cfengine-2.1.10/src/package.c
--- cfengine-2.1.10.orig/src/package.c	Wed Aug 11 23:02:06 2004
+++ cfengine-2.1.10/src/package.c	Sat Oct  9 21:59:32 2004
@@ -95,11 +95,11 @@
 
 if (GetMacroValue(CONTEXTID,"RPMcommand"))
    {
-   snprintf(VBUFF,CF_BUFSIZE,"%s -q --queryformat %%{EPOCH}:%%{VERSION}-%%{RELEASE}\\n %s",GetMacroValue(CONTEXTID,"RPMcommand"),package);
+   snprintf(VBUFF,CF_BUFSIZE,"%s -q --queryformat \"%%{EPOCH}:%%{VERSION}-%%{RELEASE}\\n\" %s",GetMacroValue(CONTEXTID,"RPMcommand"),package);
    }
 else
    {
-   snprintf(VBUFF,CF_BUFSIZE,"/bin/rpm -q --queryformat %%{EPOCH}:%%{VERSION}-%%{RELEASE}\\n %s", package);
+   snprintf(VBUFF,CF_BUFSIZE,"/bin/rpm -q --queryformat \"%%{EPOCH}:%%{VERSION}-%%{RELEASE}\\n\" %s", package);
    }
 
 if ((pp = cfpopen(VBUFF, "r")) == NULL)