All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch to add missing "errno" module import.
@ 2016-01-11  9:40 Kristian Amlie
  0 siblings, 0 replies; only message in thread
From: Kristian Amlie @ 2016-01-11  9:40 UTC (permalink / raw)
  To: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 56 bytes --]

The patch should be self explanatory.

-- 
Kristian

[-- Attachment #2: 0001-lib-bb-fetch2-git.py-Add-missing-errno-module-import.patch --]
[-- Type: text/x-patch, Size: 1032 bytes --]

From 0be670809c610469ad0d9f4e1975b46dd7bb7023 Mon Sep 17 00:00:00 2001
From: Kristian Amlie <kristian.amlie@mender.io>
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").

Signed-off-by: Kristian Amlie <kristian.amlie@mender.io>
---
 bitbake/lib/bb/fetch2/git.py |    1 +
 1 file changed, 1 insertion(+)

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-11  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-11  9:40 Patch to add missing "errno" module import Kristian Amlie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.