Skip to contentSkip to conversation

bitbake: bb.fetch2.git: Import errno module

PATCH In review Khem Raj 2 participants 2 messages Sep 19, 2015 – Sep 20, 2015

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 bitbake: bb.fetch2.git: Import errno module

From: Romain Perier <[email protected]>

Currently this module is dereferencing errno.ENOENT but the python module "errno" is not imported, which causes a crash when fetching from a git repository.

---
 lib/bb/fetch2/git.py | 1 +
 1 file changed, 1 insertion(+)
lib/bb/fetch2/git.py +1 -0
index 4a32a31..9c04da0 100644
@@ -69,6 +69,7 @@ Supported SRC_URI options are:
 import os
 import re
 import bb
+import errno
 from   bb    import data
 from   bb.fetch2 import FetchMethod
 from   bb.fetch2 import runfetchcmd
Signature · 1 line
2.5.2
#1 lore raw

Hi,

If this is the patch rebased on the bibake repo, thanks you. I am on vacations these days ;)

Romain

Quoted 29 lines · Khem Raj

From: Romain Perier <[email protected]>

Currently this module is dereferencing errno.ENOENT but the python module "errno" is not imported, which causes a crash when fetching from a git repository.

---
lib/bb/fetch2/git.py | 1 +

1 file changed, 1 insertion(+)
lib/bb/fetch2/git.py +0 -0
index 4a32a31..9c04da0 100644
@@ -69,6 +69,7 @@ Supported SRC_URI options are:

import os
import re
import bb
+import errno

from   bb    import data
from   bb.fetch2 import FetchMethod
from   bb.fetch2 import runfetchcmd

--
2.5.2