layerindex: Changes to work with Python3

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Aníbal Limón 2016-06-23 11:14:03 -05:00
parent b274a65f65
commit bdf276a0fb
4 changed files with 6 additions and 5 deletions

View File

@ -8,11 +8,12 @@
import sys import sys
import os import os
import os.path import os.path
import utils
import tempfile import tempfile
import re import re
import fnmatch import fnmatch
from layerindex import utils
class RecipeParseError(Exception): class RecipeParseError(Exception):
def __init__(self, msg): def __init__(self, msg):
self.msg = msg self.msg = msg

View File

@ -15,7 +15,7 @@ import logging
import subprocess import subprocess
import signal import signal
from distutils.version import LooseVersion from distutils.version import LooseVersion
import utils from layerindex import utils
import warnings import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning) warnings.filterwarnings("ignore", category=DeprecationWarning)

View File

@ -18,8 +18,8 @@ import tempfile
import shutil import shutil
from distutils.version import LooseVersion from distutils.version import LooseVersion
import itertools import itertools
import utils from layerindex import utils
import recipeparse from layerindex import recipeparse
import warnings import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning) warnings.filterwarnings("ignore", category=DeprecationWarning)

View File

@ -48,7 +48,7 @@ def runcmd(cmd, destdir=None, printerr=True, logger=None):
raise e raise e
out.seek(0) out.seek(0)
output = out.read() output = out.read().decode("utf-8")
#logger.debug("output: %s" % output.rstrip() ) #logger.debug("output: %s" % output.rstrip() )
return output return output