This is an automated email from the ASF dual-hosted git repository.

ardovm pushed a commit to branch AOO50X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO50X by this push:
     new 2ef8a4c3ee Clean up unneeded directories created by rpmbuild(8)
2ef8a4c3ee is described below

commit 2ef8a4c3ee9cf68239b5e03f81766dc513b2ae28
Author: Arrigo Marchiori <[email protected]>
AuthorDate: Sat Nov 21 09:35:06 2026 +0100

    Clean up unneeded directories created by rpmbuild(8)
    
    (cherry picked from commit e92b2b37c5591e28a736d00546d3075991901166)
---
 main/solenv/bin/modules/installer/epmfile.pm | 45 +++++++++++-----------------
 1 file changed, 17 insertions(+), 28 deletions(-)

diff --git a/main/solenv/bin/modules/installer/epmfile.pm 
b/main/solenv/bin/modules/installer/epmfile.pm
index 76f5b82ce7..60be036546 100644
--- a/main/solenv/bin/modules/installer/epmfile.pm
+++ b/main/solenv/bin/modules/installer/epmfile.pm
@@ -2656,34 +2656,23 @@ sub remove_temporary_epm_files
                system($systemcall);     # ignoring the return value
         $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
 
-               # removing the directory "buildroot"
-
-               my $removedir = $epmdir . "buildroot";
-
-               $systemcall = "rm -rf $removedir";
-
-        $installer::logger::Info->printf("... %s ...\n", $systemcall);
-
-               my $returnvalue = system($systemcall);
-
-               $removedir = $epmdir . "BUILD";
-
-               $systemcall = "rm -rf $removedir";
-
-        $installer::logger::Info->printf("... %s ...\n", $systemcall);
-
-               $returnvalue = system($systemcall);
-
-        $installer::logger::Lang->printf("Systemcall: %s\n", $systemcall);
-
-        if ($returnvalue)
-        {
-            $installer::logger::Lang->printf("ERROR: Could not execute 
\"%s\"!\n", $systemcall);
-        }
-        else
-        {
-            $installer::logger::Lang->printf("Success: Executed \"%s\" 
successfully!\n", $systemcall);
-        }
+               # removing the directory "buildroot" and other directories 
generated by rpmbuild
+
+               foreach my $d ("buildroot", "BUILD", "BUILDROOT", "SRPMS") {
+                       my $removedir = $epmdir . $d;
+                       $systemcall = "rm -rf $removedir";
+                       $installer::logger::Info->printf("... %s ...\n", 
$systemcall);
+                       my $returnvalue = system($systemcall);
+                       $installer::logger::Lang->printf("Systemcall: %s\n", 
$systemcall);
+                       if ($returnvalue)
+                       {
+                               $installer::logger::Lang->printf("ERROR: Could 
not execute \"%s\"!\n", $systemcall);
+                       }
+                       else
+                       {
+                               $installer::logger::Lang->printf("Success: 
Executed \"%s\" successfully!\n", $systemcall);
+                       }
+               }
        }
 }
 

Reply via email to