Author: soliton
Date: Tue May 19 21:02:18 2009
New Revision: 35759
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35759&view=rev
Log:
don't add an empty COPYING.txt
Modified:
trunk/src/campaign_server/campaign_server.cpp
Modified: trunk/src/campaign_server/campaign_server.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/campaign_server/campaign_server.cpp?rev=35759&r1=35758&r2=35759&view=diff
==============================================================================
--- trunk/src/campaign_server/campaign_server.cpp (original)
+++ trunk/src/campaign_server/campaign_server.cpp Tue May 19 21:02:18 2009
@@ -281,14 +281,15 @@
// Copy over COPYING.txt
std::string contents = read_file("COPYING.txt");
+ if (contents.empty()) {
+ LOG_CS << "Could not find COPYING.txt, path is \""
+ << game_config::path << "\"\n";
+ return;
+ }
config ©ing = dir.add_child("file");
copying["name"] = "COPYING.txt";
copying["contents"] = contents;
- if (contents.empty()) {
- LOG_CS << "Could not find COPYING.txt, path is \""
- << game_config::path << "\"\n";
- }
}
void campaign_server::convert_binary_to_gzip()
{
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits