? Information Required Pending

User tests: Successful: Unsuccessful:

avatar izharaazmi
izharaazmi
2 Mar 2017

Summary of Changes

  1. 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.

  2. 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.

Testing Instructions

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.

Expected result

The language folder from the backend should be excluded and should not be present in the prepared package.

Actual result

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.

Documentation Changes Required

None

avatar izharaazmi izharaazmi - open - 2 Mar 2017
avatar izharaazmi izharaazmi - change - 2 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Mar 2017
Category Repository
avatar izharaazmi
izharaazmi - comment - 30 Mar 2017

I have a followup PR waiting for this if this can get in. Please someone test this and move it forward.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Mar 2017

any Developers can test this?

avatar rdeutz rdeutz - change - 27 May 2017
Labels Added: ?
avatar brianteeman
brianteeman - comment - 22 Jul 2018

Please can you resolve the merge conflicts so that this can be tested

avatar ghost
ghost - comment - 19 Jul 2019

Please can you resolve the merge conflicts so that this can be tested

reminder for @izharaazmi

avatar laoneo
laoneo - comment - 11 Mar 2022

Is this pr still needed for Joomla 3?

avatar izharaazmi
izharaazmi - comment - 11 Mar 2022

Not sure. 5 years 10 days... I have lost track of this.

avatar laoneo
laoneo - comment - 12 Mar 2022

I suggest to either port it to 4.2 or to close the pr.

avatar laoneo
laoneo - comment - 21 Mar 2022

Ok, so let's close it. When somebody wants to take over, please do it against the most recent 4.x branch.

avatar laoneo laoneo - close - 21 Mar 2022
avatar laoneo laoneo - change - 21 Mar 2022
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: ?

Add a Comment

Login with GitHub to post a comment