File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ def owlbot_copy_version(
8383 src : Path ,
8484 dest : Path ,
8585 copy_excludes : typing .Optional [typing .List [str ]] = None ,
86+ version_string : str = None ,
8687) -> None :
8788 """Copies files from a version subdirectory."""
8889 logger .debug ("owlbot_copy_version called from %s to %s" , src , dest )
@@ -95,8 +96,9 @@ def owlbot_copy_version(
9596 if not entries :
9697 logger .info ("there is no src directory '%s' to copy" , src_dir )
9798 return
98- version_string = os .path .basename (os .path .basename (next (entries ))).lower ()
99- logger .debug ("version_string detected: %s" , version_string )
99+ if not version_string :
100+ version_string = os .path .basename (os .path .basename (next (entries ))).lower ()
101+ logger .debug ("version_string detected: %s" , version_string )
100102
101103 # copy all src including partial veneer classes
102104 s .move ([src / "src" ], dest / "src" , merge = _merge , excludes = copy_excludes )
You can’t perform that action at this time.
0 commit comments