Fix bowerutil import in bower2buck.

Bug: Issue 4780
Change-Id: I8b35616030cd8ef4ffdb8fa4edb3649e457ea988
This commit is contained in:
Han-Wen Nienhuys 2016-10-18 11:46:55 +02:00 committed by David Pursehouse
parent 6230173bd4
commit 939e8df480
1 changed files with 2 additions and 3 deletions

View File

@ -26,8 +26,7 @@ import subprocess
import sys
import tempfile
from tools import util
from tools.js.bowerutil import hash_bower_component
# This script is run with `buck run`, but needs to shell out to buck; this is
# only possible if we avoid buckd.
@ -78,7 +77,7 @@ class Rule(object):
self.version = bower_json['version']
self.deps = bower_json.get('dependencies', {})
self.license = bower_json.get('license', 'NO LICENSE')
self.sha1 = bowerutil.hash_bower_component(
self.sha1 = hash_bower_component(
hashlib.sha1(), os.path.dirname(bower_json_path)).hexdigest()
def to_rule(self, packages):