parse.handle(oefile, oe) # read .oe data
os.chdir(oldpath)
return oe
- except IOError, OSError:
+ finally:
os.chdir(oldpath)
- return None
def collect_oefiles( progressCallback ):
"""Collect all available .oe build files"""
except IOError:
oe.error("opening %s" % f)
pass
+ except oe.parse.SkipPackage:
+ pass
def explode_version(s):
import string
if t:
data.setVar('T', t, d)
except Exception, e:
- oe.error("executing anonymous function: %s" % e)
- pass
+ oe.debug(1, "executing anonymous function: %s" % e)
+ raise
data.delVar("__anonqueue", d)
data.delVar("__anonfunc", d)
class ParseError(Exception):
"""Exception raised when parsing fails"""
+class SkipPackage(Exception):
+ """Exception raised to skip this package"""
+
import ConfHandler
ConfHandler.ParseError = ParseError
import OEHandler
oe.fatal("Unable to open %s" % f)
try:
- make.cfg = oe.parse.handle("conf/oe.conf", make.cfg)
+ make.cfg = oe.parse.handle("conf/oe.conf", make.cfg)
except IOError:
- oe.fatal("Unable to open oe.conf")
+ oe.fatal("Unable to open oe.conf")
if not oe.data.getVar("BUILDNAME", make.cfg):
- oe.data.setVar("BUILDNAME", os.popen('date +%Y%m%d%H%M').readline().strip(), make.cfg)
+ oe.data.setVar("BUILDNAME", os.popen('date +%Y%m%d%H%M').readline().strip(), make.cfg)
buildname = oe.data.getVar("BUILDNAME", make.cfg)
+ pkgs_to_build = None
+ if args:
+ if not pkgs_to_build:
+ pkgs_to_build = []
+ pkgs_to_build.extend(args)
+ if not pkgs_to_build:
+ oepkgs = oe.data.getVar('OEPKGS', make.cfg, 1)
+ if oepkgs:
+ pkgs_to_build = oepkgs.split()
+ if not pkgs_to_build:
+ print "nothing to build"
+ sys.exit(0)
+
try:
make.collect_oefiles( myProgressCallback )
print
build_depgraph()
- pkgs_to_build = None
- if args:
- if not pkgs_to_build:
- pkgs_to_build = []
- pkgs_to_build.extend(args)
- if not pkgs_to_build:
- oepkgs = oe.data.getVar('OEPKGS', make.cfg, 1)
- if oepkgs:
- pkgs_to_build = oepkgs.split()
- if not pkgs_to_build:
- print "nothing to build"
- sys.exit(0)
-
if 'world' in pkgs_to_build:
pkgs_to_build.remove('world')
for t in __world_target: