Bugzilla – Attachment 159317 Details for
Bug 35428
gulp po tasks do not clean temporary files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35428: Remove temporary files for gulp po tasks
Bug-35428-Remove-temporary-files-for-gulp-po-tasks.patch (text/plain), 1.04 KB, created by
Jonathan Druart
on 2023-11-29 09:04:36 UTC
(
hide
)
Description:
Bug 35428: Remove temporary files for gulp po tasks
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-11-29 09:04:36 UTC
Size:
1.04 KB
patch
obsolete
>From e46f8bab45192a1757b318d03d93e6e32b5aa42d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 29 Nov 2023 10:02:50 +0100 >Subject: [PATCH] Bug 35428: Remove temporary files for gulp po tasks > >gulp po:update will generate 1 /tmp/koha-* directory per task. > >We need to remove them when the script does not longer need them. > >Test plan: >0. Do not apply this patch >1. ls -ltr /tmp >2. gulp po:update --lang es-ES >3. ls -ltr /tmp >=> Notice new koha-* directories >Repeat 2, 3 >4. Apply this patch and try again >=> No new directories when the job is done >--- > gulpfile.js | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/gulpfile.js b/gulpfile.js >index 4676eee69a3..2ff7ff0cf72 100644 >--- a/gulpfile.js >+++ b/gulpfile.js >@@ -386,6 +386,7 @@ function xgettext (cmd, filename) { > file.contents = data; > callback(null, file); > }); >+ fs.rmSync(folder, { recursive: true }); > }); > }); > }) >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35428
:
159317
|
159318
|
159470