Skip to contentSkip to conversation

bitbake: Missing 'import errno' in git.py

DISCUSSION Mike Looijmans 2 participants 2 messages Sep 19, 2015

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
Mike Looijmans
#1 lore raw
Quoted 3 lines · Mike Looijmans

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

Yes, there's a patch on the bitbake list already.

Ross