Skip to content

Commit d3c3882

Browse files
native-apiskvark
authored andcommitted
Fix removing old built opencv_ffmpeg when a new upstream formula is available
Happened in https://travis-ci.org/skvark/opencv-python/builds/518179810 S1 jobs
1 parent 54cbe08 commit d3c3882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function pre_build {
9292
#after the cache stage, all bottles and Homebrew metadata should be already cached locally
9393
if [ -n "$CACHE_STAGE" ]; then
9494
brew update
95+
generate_ffmpeg_formula
9596
brew_add_local_bottles
9697
fi
9798

@@ -107,7 +108,6 @@ function pre_build {
107108
echo 'Installing FFmpeg'
108109

109110
if [ -n "$CACHE_STAGE" ]; then
110-
generate_ffmpeg_formula
111111
brew_install_and_cache_within_time_limit ffmpeg_opencv || { [ $? -gt 1 ] && return 2 || return 0; }
112112
else
113113
brew install ffmpeg_opencv

0 commit comments

Comments
 (0)