mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
layerindex: Changes to work with Python3
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
parent
b274a65f65
commit
bdf276a0fb
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user