[bitbake-devel] [PATCH V2] bitbake: bb.fetch2.git: Import errno module

Khem Raj raj.khem at gmail.com
Sat Sep 19 21:23:36 UTC 2015


From: Romain Perier <romain.perier at gmail.com>

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.

Signed-off-by: Romain Perier <romain.perier at gmail.com>
Acked-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 lib/bb/fetch2/git.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 4a32a31..9c04da0 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -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




More information about the bitbake-devel mailing list