Fwd: [PATCH] Add new 'clean_files' function to perform file cleanups for */rm stages

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: [PATCH] Add new 'clean_files' function to perform file cleanups for */rm stages

M. J. Everitt
Derp .. take 2 ..


-------- Forwarded Message --------
Subject: [PATCH] Add new 'clean_files' function to perform file
cleanups for */rm stages
Date: Mon, 16 Jul 2018 02:13:09 +0100
From: M. J. Everitt <[hidden email]>
To: [hidden email]



It would appear that the */rm stages never actually cleaned up files -
there is provision for directory and symlink removal, but no code for
files. Added to this, any wildcards specified are ignored by the
os.file.exists() function. A new function seemed to be the sensible
solution to this issue, utilising the python 'glob.glob' function.

Bug: https://bugs.gentoo.org/661084

Signed-off-by: M. J. Everitt <[hidden email]>
---
 catalyst/fileops.py | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)


0001-Add-new-clean_files-function-to-perform-file-cleanup.patch (1K) Download Attachment
signature.asc (849 bytes) Download Attachment