mercurial: update regexp to match framework python

Fixes Homebrew/homebrew#9593
This commit is contained in:
Misty De Meo 2012-01-14 02:39:03 -06:00
parent cacc56493d
commit 100bda5792

View file

@ -44,7 +44,7 @@ class Mercurial < Formula
ln_s libexec+'hg', bin+'hg'
# Remove the hard-coded python invocation from hg
inreplace bin+'hg', %r[#!/.*/python], '#!/usr/bin/env python'
inreplace bin+'hg', %r[#!/.*/python/.*], '#!/usr/bin/env python'
# Install some contribs
bin.install 'contrib/hgk'