Skip to content

Commit db77caf

Browse files
author
Ahmed Bilal
committed
Fix: Remove early return after deleting object in replace mode
The previous implementation would delete the existing object but then skip writing the replacement due to 'continue' statement. This caused the roottest-main-SimpleRootmv1 tests to fail. Now after deleting, the code flows through to write the new object.
1 parent 86a3691 commit db77caf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

main/python/cmdLineUtils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,6 @@ def copyRootObjectRecursive(sourceFile, sourcePathSplit, destFile, destPathSplit
713713
retcodeTemp = deleteObject(destFile, destPathSplit + [objectName])
714714
if retcodeTemp:
715715
retcode += retcodeTemp
716-
obj.Delete()
717-
continue
718716
if setName != "":
719717
if isinstance(obj, ROOT.TNamed):
720718
obj.SetName(setName)

0 commit comments

Comments
 (0)