Skip to content

Commit

Permalink
Added archive sorting - on the network _findfirst returns files in ra…
Browse files Browse the repository at this point in the history
…ndom order
  • Loading branch information
rupor-github committed Jun 19, 2016
1 parent 006785a commit 0e81249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
project(InpxCreator)
# Project version number
set(PRJ_VERSION_MAJOR 6)
set(PRJ_VERSION_MINOR 41)
set(PRJ_VERSION_MINOR 42)
configure_file ("${PROJECT_SOURCE_DIR}/cmake/version.h.in" "${PROJECT_BINARY_DIR}/version.h")
include_directories("${PROJECT_BINARY_DIR}")

Expand Down
3 changes: 2 additions & 1 deletion lib2inpx/lib2inpx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,9 +872,10 @@ void process_local_archives(const mysql_connection& mysql, const zip& zz, const
if (0 == files.size()) {
throw runtime_error(tmp_str("No archives are available for processing \"%s\"", archives_path.c_str()));
}

cout << endl << "Archives processing - " << files.size() << " file(s) [" << archives_path << "]" << endl << endl;

sort(files.begin(), files.end());

for (vector<string>::const_iterator it = files.begin(); it != files.end(); ++it) {
vector<string> errors;
string name = "\"" + *it + "\"";
Expand Down

0 comments on commit 0e81249

Please sign in to comment.