Browse Source

- for oxum calc, use absolute paths

master
Andreas Romeyke 3 years ago
parent
commit
926996063c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lib/validate_bag.cpp

+ 1
- 1
src/lib/validate_bag.cpp View File

@ -90,7 +90,7 @@ bool Bag::validate( list<string> & log ) {
if (this->bagmetadata_p->has_oxum()) {
// check oxum of payload
Checksum c;
list<string> files = this->payload_p->get_all_relative_paths();
list<string> files = this->payload_p->get_all_absolute_paths();
oxum_t expected_oxum = this->bagmetadata_p->get_oxum();
oxum_t calculated_oxum = c.oxum_of_filelist( files );
if (expected_oxum.octetcount != calculated_oxum.octetcount) {


Loading…
Cancel
Save