Skip to content

Strip wp-content/ using ZipArchive to allow --skip-content always#59

Merged
danielbachhuber merged 4 commits intomasterfrom
57-strip-wp-content
Dec 11, 2017
Merged

Strip wp-content/ using ZipArchive to allow --skip-content always#59
danielbachhuber merged 4 commits intomasterfrom
57-strip-wp-content

Conversation

@danielbachhuber
Copy link
Member

Fixes #57

@danielbachhuber danielbachhuber added this to the 1.0.7 milestone Dec 8, 2017
@danielbachhuber danielbachhuber added the command:core-download Related to 'core download' command label Dec 8, 2017
@danielbachhuber danielbachhuber requested a review from a team December 8, 2017 15:35
Copy link
Contributor

@gitlost gitlost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also there're various temp files being left around in /tmp. I think the easiest way to deal with these is to use register_shutdown_function() to clean them up so I'll push a commit doing this, see what you think...

$bad_cache = false;
if ( $cache_file ) {
WP_CLI::log( "Using cached file '$cache_file'..." );
if ( $skip_content ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be better to use a different variable here for the skip content file so as not to confuse things...

WP_CLI::warning( 'md5 hash checks are not available for nightly downloads.' );
}

if ( $skip_content ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto here.

@gitlost
Copy link
Contributor

gitlost commented Dec 10, 2017

One job failed for "features/core-download.feature:179" on wp core download --version=4.3.2 --force with

Warning: Checksums not available for WordPress 5.0-alpha-42380/en_US. Please cleanup files manually.

although https://api.wordpress.org/core/checksums/1.0/?version=5.0-alpha-42380&locale=en_US usually works.

Restarting build...

@gitlost gitlost requested a review from a team December 10, 2017 00:52
@danielbachhuber danielbachhuber merged commit 2ef05ac into master Dec 11, 2017
@danielbachhuber danielbachhuber deleted the 57-strip-wp-content branch December 11, 2017 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:core-download Related to 'core download' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants