Skip to content
Snippets Groups Projects
Unverified Commit dd527bfc authored by Zhiming Wang's avatar Zhiming Wang
Browse files

bottle: fix nonexistent pyc bug

We were deleting pyc files *after* replace_locations_with_placeholders
and recording changed_files, meaning that some of the recorded files
were to be deleted. The correct order is the opposite.

A sample failed session: https://bot.brew.sh/job/Homebrew%20Core/10080/version=el_capitan/testReport/junit/brew-test-bot/el_capitan/bottle_buku/.
parent 79e8cdd3
No related branches found
No related tags found
No related merge requests found
......@@ -190,12 +190,12 @@ module Homebrew
changed_files = nil
begin
keg.delete_pyc_files!
unless ARGV.include? "--skip-relocation"
changed_files = keg.replace_locations_with_placeholders
end
keg.delete_pyc_files!
Tab.clear_cache
tab = Tab.for_keg(keg)
original_tab = tab.dup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment