From 63f6d78604c351eb5e83932bab3c11c861dcb42d Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Wed, 25 Feb 2009 18:11:01 +0100 Subject: minor fixs --- lib/Plugins/CCpp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Plugins/CCpp.cpp') diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index de83231..f1c692e 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -47,7 +47,7 @@ void CLanguageCCpp::InstallDebugInfos(const std::string& pPackage) std::string installed = "already installed and latest version"; std::string canNotInstall = "No debuginfo packages available to install"; FILE *fp = popen(command.c_str(), "r"); - std::cout << installed << std::endl; + if (fp == NULL) { throw "CLanguageCCpp::InstallDebugInfos(): cannot execute " + command ; @@ -55,6 +55,7 @@ void CLanguageCCpp::InstallDebugInfos(const std::string& pPackage) while (fgets(line, sizeof(line), fp)) { std::string text = line; + std::cout << text; if (text.find(packageDebuginfo) != std::string::npos && text.find(installed) != std::string::npos) { -- cgit