From fa3d55a57ac1ce3a045a044ddc3991996b1c0430 Mon Sep 17 00:00:00 2001 From: Dario Berzano Date: Sun, 27 May 2018 10:27:34 +0200 Subject: [PATCH] Ensure local files contain remote name in merge Complements #138 and only affects release validation processing --- DataProc/MergeOutputs/mergeByComponent.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DataProc/MergeOutputs/mergeByComponent.C b/DataProc/MergeOutputs/mergeByComponent.C index ff86b9e8..b0a617be 100644 --- a/DataProc/MergeOutputs/mergeByComponent.C +++ b/DataProc/MergeOutputs/mergeByComponent.C @@ -190,6 +190,9 @@ void CopyCPass(const char* alienFileList, const char* outputFileList, Int_t time dst.ReplaceAll("/","_"); if (dst.Length() > 240) { dst = src.MD5(); + dst.Append("_"); + dst.Append(gSystem->BaseName(src)); + cout << "Note: long file name " << src << " will be copied locally as " << dst << endl; } Bool_t result = TFile::Cp(src.Data(),dst.Data(),kTRUE); AliSysInfo::AddStamp(dst.Data(),counter, result);