1
0
Fork 0

Fixed parsing of the no-overwrite flag (would have been a no-op otherwise!)

Made the client more verbose, so that we see when it skips files.
This commit is contained in:
Ralf Gerlich 2007-12-19 02:19:06 -08:00
parent 226c1bebcd
commit e62ee35e9b

View file

@ -283,7 +283,7 @@ int main(int argc, char *argv[]) {
} else if (arg == "--rude") {
rude = true;
} else if (arg == "--no-overwrite") {
do_overwrite = true;
do_overwrite = false;
} else if (arg.find("--cover=") == 0) {
cover = arg.substr(8);
} else if (arg.find("--") == 0) {
@ -325,7 +325,12 @@ int main(int argc, char *argv[]) {
while ( (tile = get_next_task( host, port, last_tile )) >= 0 ) {
SGBucket bucket(tile);
result=!must_generate(bucket) || construct_tile( bucket, result_file, cover );
if (!must_generate(bucket)) {
cout << "No need to build tile " << tile << "\n";
result=true;
} else {
result=construct_tile( bucket, result_file, cover );
}
if ( result ) {
last_tile = tile;
} else {