Skip to contentSkip to conversation

Patch to add missing "errno" module import.

PATCH Kristian Amlie 1 participant 1 message Jan 11, 2016

lore
Share & tools
lore
#0 lore raw

The patch should be self explanatory.

Signature · 1 line
Kristian

From 0be670809c610469ad0d9f4e1975b46dd7bb7023 Mon Sep 17 00:00:00 2001
From: Kristian Amlie <[email protected]>
Date: Mon, 11 Jan 2016 10:32:28 +0100
Subject: [PATCH] lib/bb/fetch2/git.py: Add missing "errno" module import.

This goes undetected most of the time, but when updating a repository, if the ud.fullmirror file is not present, you end up getting an exception instead of carrying on because the errno module is not loaded (specifically "if exc.errno != errno.ENOENT").

---
 bitbake/lib/bb/fetch2/git.py |    1 +
 1 file changed, 1 insertion(+)
bitbake/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
1.7.9.5