This is an automated email from the ASF dual-hosted git repository.
ardovm pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO41X by this push:
new 4ad2a85523 Clean up unneeded directories created by rpmbuild(8)
4ad2a85523 is described below
commit 4ad2a85523d80455dde4ca2d0e3329e338d41e13
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 | 47 +++++++++++-----------------
1 file changed, 18 insertions(+), 29 deletions(-)
diff --git a/main/solenv/bin/modules/installer/epmfile.pm
b/main/solenv/bin/modules/installer/epmfile.pm
index 3845736b3a..cdf2243b18 100644
--- a/main/solenv/bin/modules/installer/epmfile.pm
+++ b/main/solenv/bin/modules/installer/epmfile.pm
@@ -2672,35 +2672,24 @@ 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);
+ }
+ }
+ }
}
######################################################