Skip to content

Commit

Permalink
Make string copies of output streams for cout
Browse files Browse the repository at this point in the history
Fixes building on wily distribution
  • Loading branch information
larseje committed Sep 16, 2015
1 parent cffe34e commit baa175f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/source.cc
Expand Up @@ -492,7 +492,7 @@ void CSource::Download(list<CBuildFile*> *buildfiles, string source_dir)
} else {
status.str("");
status << "Error: " << item->source_dir + "/" + item->filename + ".part" << " not found" << endl << flush;
cout << status;
cout << status.str();
Log.print(status.str());
exit(EXIT_FAILURE);
}
Expand All @@ -509,7 +509,7 @@ void CSource::Download(list<CBuildFile*> *buildfiles, string source_dir)
} else {
status.str("");
status << "Error: CURLMsg (" << msg->msg << ")" << endl << flush;
cout << status;
cout << status.str();
Log.print(status.str());
exit(EXIT_FAILURE);
}
Expand All @@ -529,7 +529,7 @@ void CSource::Download(list<CBuildFile*> *buildfiles, string source_dir)
{
status.str("");
status << "Error: Could not download all sources - see download errors above." << endl;
cout << status;
cout << status.str();
Log.print(status.str());
exit(EXIT_FAILURE);
}
Expand Down

0 comments on commit baa175f

Please sign in to comment.