[OE-core] bitbake: Missing 'import errno' in git.py

Mike Looijmans mike.looijmans at topic.nl
Sat Sep 19 12:07:36 UTC 2015


I think there's an "import errno" missing in the file. Anyone already 
aware of this, or should I make a patch?

File: '.../bitbake/lib/bb/fetch2/git.py', lineno: 224, function: download
      0220:            runfetchcmd("%s pack-redundant --all | xargs -r 
rm" % ud.basecmd, d)
      0221:            try:
      0222:                os.unlink(ud.fullmirror)
      0223:            except OSError as exc:
  *** 0224:                if exc.errno != errno.ENOENT:
      0225:                    raise
      0226:        os.chdir(ud.clonedir)
      0227:        for name in ud.names:
      0228:            if not self._contains_ref(ud, d, name):
Exception: NameError: global name 'errno' is not defined

-- 
Mike Looijmans



More information about the Openembedded-core mailing list