https://bz.apache.org/ooo/show_bug.cgi?id=128416

          Issue ID: 128416
        Issue Type: DEFECT
           Summary: Failure due to moving absent file
           Product: Build Tools
           Version: 4.2.0-dev
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: solenv
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Remove code that uses a non-existent file

This code block tries to move $outfile while the previous code doesn't create
$outfile; only $outfile_sh and possibly $outfile_bat are created.

--- a/main/set_soenv.in
+++ b/main/set_soenv.in
@@ -2167,11 +2167,6 @@ if( defined($outfile_bat))
 # XI. Moving the output file to the build home directory.
 #--------------------------------------------------------
 #
-$tmp = $SRC_ROOT.$ds.$outfile;
-if (rename( $outfile, $tmp ) ne 1)
-{  `mv -f $outfile $tmp`;
-}
-
 $tmp = $SRC_ROOT.$ds.$outfile_sh;
 if (rename( $outfile_sh, $tmp ) ne 1)
 {  `mv -f $outfile_sh $tmp`;

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to