Skip to content

Commit

Permalink
TMP: more debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jepio committed Dec 16, 2024
1 parent 58d1e4b commit 9534025
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common/commonutils/PackageUtils.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ static int CheckOrInstallPackage(const char* commandTemplate, const char* packag

OsConfigLogInfo(log, "Package manager '%s' command '%s' complete with %d (errno: %d)", packageManager, command, status, errno);

const char *pattern = "Could not get lock /var/lib/dpkg/lock-frontend";
if (textResult && strstr(textResult, pattern))
{
char *tmp = NULL;
ExecuteCommand(NULL, "ps faux", false, false, 0, 0, &tmp, NULL, log);
FREE_MEMORY(tmp);
}
FREE_MEMORY(textResult);
FREE_MEMORY(command);

Expand Down

0 comments on commit 9534025

Please sign in to comment.