summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 5381d43e7b..a81263a12a 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -896,7 +896,7 @@ python () {
def base_get_srcrev(d):
import bb
- if bb.fetch.get_srcrev:
+ if hasattr(bb.fetch, "get_srcrev"):
return bb.fetch.get_srcrev(d)
return "NOT IMPLEMENTED"