Skip to contentSkip to conversation

fetch2: Fix missing logger import in repo fetcher

PATCH New Oleksandr Andrushchenko 1 participant 1 message Oct 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2: Fix missing logger import in repo fetcher

From: Oleksandr Andrushchenko <[email protected]>

After cleaning deprecated API usage repo fetcher is missing logger as it was indirectly imported via deprecated bb.data. Fix this by importing logger directly.

Fixes 9752fd1c10b8 ("fetch2: don't use deprecated bb.data APIs")
---
 lib/bb/fetch2/repo.py | 1 +
 1 file changed, 1 insertion(+)
lib/bb/fetch2/repo.py +1 -0
index 1be91cc698e3..c22d9b5578eb 100644
@@ -27,6 +27,7 @@ import os
 import bb
 from   bb.fetch2 import FetchMethod
 from   bb.fetch2 import runfetchcmd
+from   bb.fetch2 import logger
 
 class Repo(FetchMethod):
     """Class to fetch a module or modules from repo (git) repositories"""
Signature · 1 line
2.7.4