From: Kristian Amlie <kristian.amlie@cfengine.com>
To: bitbake-devel@lists.openembedded.org
Subject: Patch to add missing "errno" module import.
Date: Mon, 11 Jan 2016 10:40:30 +0100 [thread overview]
Message-ID: <5693788E.3060007@cfengine.com> (raw)
[-- 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
reply other threads:[~2016-01-11 9:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5693788E.3060007@cfengine.com \
--to=kristian.amlie@cfengine.com \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.