keg: add delete_pyc_files! method.
This commit is contained in:
parent
5b6d872459
commit
916e751596
@ -196,6 +196,13 @@ class Keg < Pathname
|
||||
from.make_relative_symlink(self)
|
||||
end
|
||||
|
||||
def delete_pyc_files!
|
||||
Pathname.new(self).find do |pn|
|
||||
next if pn.extname != '.pyc'
|
||||
pn.delete
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def resolve_any_conflicts dst
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user