Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 3/3] base.bbclass: fix base_get_scmbasepath() to look for recipes/ and fall back to packages/ while parsing BBFILES
Date: Mon, 16 Mar 2009 19:32:44 -0400	[thread overview]
Message-ID: <1237246365-32076-4-git-send-email-denis@denix.org> (raw)
In-Reply-To: <1237246365-32076-1-git-send-email-denis@denix.org>

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
---
 classes/base.bbclass |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 18afc1a..0848870 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>"
-- 
1.6.0.6




  parent reply	other threads:[~2009-03-16 23:33 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 23:32 [PATCH 0/3] rename packages/ to recipes/ per earlier agreement Denys Dmytriyenko
2009-03-16 23:32 ` [PATCH 1/3] " Denys Dmytriyenko
2009-03-16 23:32 ` [PATCH 2/3] recipes: fix hardcoded instances of packages/ Denys Dmytriyenko
2009-03-17  2:45   ` Khem Raj
2009-03-16 23:32 ` Denys Dmytriyenko [this message]
2009-03-23  8:57   ` [PATCH 3/3] base.bbclass: fix base_get_scmbasepath() to look for recipes/ and fall back to packages/ while parsing BBFILES Otavio Salvador
2009-03-23 16:21     ` Denys Dmytriyenko
2009-03-23 18:04       ` Otavio Salvador
2009-03-23 18:12         ` Philip Balister
2009-03-16 23:32 ` Denys Dmytriyenko
2009-03-17  0:56 ` [PATCH 0/3] rename packages/ to recipes/ per earlier agreement Mike (mwester)
2009-03-17  1:25   ` Philip Balister
2009-03-17 19:26   ` Denys Dmytriyenko
2009-03-19  0:25     ` Theodore A. Roth
2009-03-19  2:01       ` Denys Dmytriyenko
2009-03-19  3:13         ` Denys Dmytriyenko
2009-03-19  7:22           ` Frans Meulenbroeks
2009-03-19 17:05             ` Theodore A. Roth
2009-03-19 20:33               ` Frans Meulenbroeks
2009-03-17 13:09 ` Marcin Juszkiewicz
2009-03-17 14:42 ` Koen Kooi
2009-03-17 17:19   ` Frans Meulenbroeks
2009-03-17 19:54     ` Otavio Salvador
2009-03-17 19:59       ` Denys Dmytriyenko
2009-03-17 19:29   ` Denys Dmytriyenko

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=1237246365-32076-4-git-send-email-denis@denix.org \
    --to=denis@denix.org \
    --cc=openembedded-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox