diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-25 18:11:01 +0100 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-25 18:11:01 +0100 |
| commit | 63f6d78604c351eb5e83932bab3c11c861dcb42d (patch) | |
| tree | 1da35a6c8e878ec5da0e2b618296beb057232abe /lib/Plugins/CCpp.cpp | |
| parent | 0b0a0655935e21f46e29e9a1a8904d8378c207ac (diff) | |
| download | abrt-63f6d78604c351eb5e83932bab3c11c861dcb42d.tar.gz abrt-63f6d78604c351eb5e83932bab3c11c861dcb42d.tar.xz abrt-63f6d78604c351eb5e83932bab3c11c861dcb42d.zip | |
minor fixs
Diffstat (limited to 'lib/Plugins/CCpp.cpp')
| -rw-r--r-- | lib/Plugins/CCpp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |
