Skip to content

Commit b35f3bd

Browse files
committed
Correcting command templates
1 parent 0b430d2 commit b35f3bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/commonutils/PackageUtils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ static int CheckAllPackages(const char* commandTemplate, const char* packageMana
154154
static int UpdateInstalledPackagesCache(OsConfigLogHandle log)
155155
{
156156
const char* commandTemplateDpkg = "%s-query -W -f='${binary:Package}\n'";
157-
const char* commandTemplateRpm = "%s -qa --queryformat \"%{NAME}\n\"";
158-
const char* commandTemplateYumDnf = "%s list installed --cacheonly | awk '{print $1}'";
157+
const char* commandTemplateRpm = "%s -qa --queryformat \"%{NAME}\\n\"";
158+
const char* commandTemplateYumDnf = "%s list installed --cacheonly | awk '{print $1}'";
159159
const char* commandTmeplateZypper = "%s search -i";
160160

161161
char* results = NULL;

0 commit comments

Comments
 (0)