diff --git a/src/lib/manifest.cpp b/src/lib/manifest.cpp index 8c3f283..7d80544 100644 --- a/src/lib/manifest.cpp +++ b/src/lib/manifest.cpp @@ -94,14 +94,16 @@ bool Manifest::store( string basedir, list& files ) { checksum_algorithms alg = it->first; // test if file exists string algfilename = basedir + it->second; + cout << "DEBUG manifest::store, file='"<::iterator ch; for (ch=files.begin(); ch!=files.end(); ++ch) { - string filename = *ch; + string filename = basedir + *ch; + cout << "\tfilename='"<::iterator it=possible_manifest_files.begin(); it!=possible_manifest_files.end(); ++it) { checksum_algorithms alg = it->first; // test if file exists - string filename = basedir + it->second; - fs::path p{ filename }; + //string filename = basedir + it->second; + string filename = it->second; + fs::path p{ basedir + filename }; fs::file_status s = fs::status( p ); if (fs::is_regular_file( s)) { Payloadmanifest::manifest_algorithm_files[alg] = filename; diff --git a/src/lib/tagmanifest.cpp b/src/lib/tagmanifest.cpp index 8a13363..9f1b4a9 100644 --- a/src/lib/tagmanifest.cpp +++ b/src/lib/tagmanifest.cpp @@ -22,13 +22,15 @@ Tagmanifest::Tagmanifest( string basedir ) { // debug // cout << it->first << " => " << it->second << endl; // test if file exists - string filename = basedir + it->second; + //string filename = basedir + it->second; + string filename = it->second; + checksum_algorithms alg = it->first; fs::path p{ filename }; fs::file_status s = fs::status( p ); //cout << "path "<< p.string() << endl; //cout << "is file: "<< fs::is_regular_file( s) << endl; if (fs::is_regular_file( s)) { - Tagmanifest::manifest_algorithm_files[it->first] = filename; + Tagmanifest::manifest_algorithm_files[alg] = filename; // debug //cout << "TAGMANIFEST: alg="<< it->first << " => filename=" << it->second << endl; //cout << "TAGMANIFEST2: alg="<< it->first << " => filename=" << filename << endl;