From 3358009249398b9c2e1e5f0618ff3315eb05fc3e Mon Sep 17 00:00:00 2001 From: Hasan Wan Date: Mon, 27 May 2013 16:29:01 +0800 Subject: [PATCH] fix errors about class importing and file opening Change-Id: I085820d9f9c0e04b501769907c943fe999e0a503 Signed-off-by: Hasan Wan --- common/repomaker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/repomaker.py b/common/repomaker.py index 1769caf..c7f9a6e 100644 --- a/common/repomaker.py +++ b/common/repomaker.py @@ -22,6 +22,7 @@ RepoMaker - creates download repos import os import shutil from hashlib import sha256 +from subprocess import check_output, CalledProcessError from common.builddata import BuildData, BuildDataError @@ -232,7 +233,7 @@ class RepoMaker(object): # Create or update build.xml outf = os.path.join(self.outdir, 'build.xml') if os.path.exists(outf): - bdata.load(open(outf)) + bdata.load(open(outf).read()) bdata.add_target(target) bdata.save(outf) -- 2.7.4