summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/base.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 18afc1a2fe..0848870803 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -773,7 +773,13 @@ python base_do_unpack() {
def base_get_scmbasepath(d):
import bb
path_to_bbfiles = bb.data.getVar( 'BBFILES', d, 1 ).split()
- return path_to_bbfiles[0][:path_to_bbfiles[0].rindex( "packages" )]
+
+ try:
+ index = path_to_bbfiles[0].rindex( "recipes" )
+ except ValueError:
+ index = path_to_bbfiles[0].rindex( "packages" )
+
+ return path_to_bbfiles[0][:index]
def base_get_metadata_monotone_branch(d):
monotone_branch = "<unknown>"