diff --git a/Changelog.md b/Changelog.md index 84edf215..84d6bc84 100644 --- a/Changelog.md +++ b/Changelog.md @@ -11,7 +11,28 @@ ## Ignition Fuel Tools 6.x -### Ignition Fuel Tools 6.X.X (20XX-XX-XX) +### Ignition Fuel Tools 6.2.0 (2022-03-25) + +1. Fix trailing slashes in failing tests + * [Pull request #237](https://github.com/ignitionrobotics/ign-fuel-tools/pull/237) + +1. Print error when unzipping fails to save a file + * [Pull request #235](https://github.com/ignitionrobotics/ign-fuel-tools/pull/235) + +1. More checks when manipulating file system in tests + * [Pull request #227](https://github.com/ignitionrobotics/ign-fuel-tools/pull/227) + +1. Move test cache to build folder + * [Pull request #222](https://github.com/ignitionrobotics/ign-fuel-tools/pull/222) + +1. Improve and fix ResultType tests + * [Pull request #225](https://github.com/ignitionrobotics/ign-fuel-tools/pull/225) + +1. `FuelClient.cc`: `include ` + * [Pull request #213](https://github.com/ignitionrobotics/ign-fuel-tools/pull/213) + +1. APIs for retrieving models in parallel + * [Pull request #199](https://github.com/ignitionrobotics/ign-fuel-tools/pull/199) ### Ignition Fuel Tools 6.1.0 (2021-10-15) diff --git a/src/Zip.cc b/src/Zip.cc index f4d5be81..a4529f48 100644 --- a/src/Zip.cc +++ b/src/Zip.cc @@ -150,6 +150,7 @@ bool Zip::Extract(const std::string &_src, << "Do you have the right permissions?" << std::endl; return false; } + continue; } // Create and write the files. @@ -168,9 +169,17 @@ bool Zip::Extract(const std::string &_src, if (len < 0) ignerr << "Error reading " << sb.name << std::endl; else + { file.write(buf, len); - - igndbg << "Created file [" << dst << "]" << std::endl; + if (file.fail()) + { + ignerr << "Failed to write file [" << dst << "]" << std::endl; + } + else + { + igndbg << "Created file [" << dst << "]" << std::endl; + } + } delete[] buf; file.close();