From c013b1049b3fac6471cfc5535a44c62da4785817 Mon Sep 17 00:00:00 2001
From: Jens Steidl <Jens.Steidl@slub-dresden.de>
Date: Mon, 12 Oct 2020 11:09:41 +0200
Subject: [PATCH] - removed unnecessary bag verfication step (makes no sense,
 bag was just build by the same module, no data was added or changed)

---
 bin/slubsipbuilderbagit.pl | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/bin/slubsipbuilderbagit.pl b/bin/slubsipbuilderbagit.pl
index 2bfe13c..e554f76 100644
--- a/bin/slubsipbuilderbagit.pl
+++ b/bin/slubsipbuilderbagit.pl
@@ -7964,16 +7964,8 @@ PATCH
         my $oArchiveBagIt = Archive::BagIt::Base->make_bag($bagPath);
         $oArchiveBagIt->bag_info($refAddBagInfo);
         $oArchiveBagIt->store();
-        
-        # validate bag
-        my $res = $oArchiveBagIt->verify_bag();
-        if($res eq 1){
-            print_scalar_data("", "SUCCESS: SLUB Bag at $bagPath build successfully!", "", "green");
-            return 1;
-        } else {
-            print_scalar_data("", "FAILED: SLUB Bag at $bagPath build failed!", "", "red");
-        }
-        
+        print_scalar_data("", "SUCCESS: SLUB Bag at $bagPath build successfully!", "", "green");
+
         return 0;
     }
 
-- 
GitLab