User tests: Successful: Unsuccessful:
Fix path matching for exclusion during Joomla release packaging.
Currently we have lists of files and folders in build.php
packaging script for do not package
and do not patch
which allows us to skip certain files from being included in the release packages.
Current comparison logic only compares the first level of subdirectory and not above it. Therefore any exclusion directive for a path like /administrator/logs
will be simply ignored and it will be included in the package anyway.
This PR fixes this issue and lets us exclude by defining any level of path e.g. - /path/level/three
as well.
Refactor file names for the archives into a variable and reuse it for each archive format - improves readability.
We ship our release packages in tar.gz
, tar.bz2
and zip
formats each having same base filename.
With this PR, we calculate the file name once only and reuse it for each archive format.
Edit the build.php
file to add /administrator/language
in the $doNotPackage
array.
Execute the script to build a release package.
Do not forget to follow the given instruction in the top of the script.php
file itself.
The language folder from the backend should be excluded and should not be present in the prepared package.
The language folder from the backend is NOT excluded and it is still present in the prepared package.
After this patch you will need to add /administrator/language/
(notice the trailing slash) and then we'll get the expected result.
None
Status | New | ⇒ | Pending |
Category | ⇒ | Repository |
any Developers can test this?
Labels |
Added:
?
|
Please can you resolve the merge conflicts so that this can be tested
Please can you resolve the merge conflicts so that this can be tested
reminder for @izharaazmi
Is this pr still needed for Joomla 3?
Not sure. 5 years 10 days... I have lost track of this.
I suggest to either port it to 4.2 or to close the pr.
Ok, so let's close it. When somebody wants to take over, please do it against the most recent 4.x branch.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-03-21 15:09:33 |
Closed_By | ⇒ | laoneo | |
Labels |
Added:
?
Information Required
Removed: ? |
I have a followup PR waiting for this if this can get in. Please someone test this and move it forward.