summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/CCpp.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com>2009-04-08 14:12:09 +0200
committerZdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com>2009-04-08 14:12:09 +0200
commit477fa5323fad21b978cf8025a80041f979b2c27b (patch)
treee27abadb0e7f1514a7248164877ae44f5e174727 /lib/Plugins/CCpp.cpp
parent234a905fe548f73f5e1df0db5b3490ae9b00a9d5 (diff)
downloadabrt-477fa5323fad21b978cf8025a80041f979b2c27b.tar.gz
abrt-477fa5323fad21b978cf8025a80041f979b2c27b.tar.xz
abrt-477fa5323fad21b978cf8025a80041f979b2c27b.zip
fixed debuginfo-install checks
Diffstat (limited to 'lib/Plugins/CCpp.cpp')
-rw-r--r--lib/Plugins/CCpp.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index 95a9fff..6f1cf18 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -126,6 +126,7 @@ void CAnalyzerCCpp::InstallDebugInfos(const std::string& pPackage)
close(pipeout[1]);
bool quit = false;
+ bool already_installed = false;
while(!quit)
{
@@ -152,11 +153,12 @@ void CAnalyzerCCpp::InstallDebugInfos(const std::string& pPackage)
if (strstr(buff, packageName.c_str()) != NULL &&
strstr(buff, "already installed and latest version") != NULL)
{
- break;
+ already_installed = true;
}
- if (strstr(buff, "No debuginfo packages available to install") != NULL ||
- strstr(buff, "Could not find debuginfo for main pkg") != NULL ||
- strstr(buff, "Could not find debuginfo pkg for dependency package") != NULL)
+ if (already_installed == false &&
+ (strstr(buff, "No debuginfo packages available to install") != NULL ||
+ strstr(buff, "Could not find debuginfo for main pkg") != NULL ||
+ strstr(buff, "Could not find debuginfo pkg for dependency package") != NULL))
{
close(pipein[1]);
close(pipeout[0]);