[oe-commits] [openembedded-core] 12/17: buildhistory-diff: operate from buildhistory directory
git at git.openembedded.org
git at git.openembedded.org
Mon Apr 10 22:33:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 68d0dfcb7cd2c8b77dac0049475d7b9b5143b0ac
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Fri Apr 7 16:57:18 2017 +1200
buildhistory-diff: operate from buildhistory directory
If the cwd is named "buildhistory" and the user hasn't specified an
alternative path on the command line, then assume that the current
directory is the buildhistory directory. This makes it easier to run
buildhistory-diff and also interact with the buildhistory git repository
as you no longer have to jump into the buildhistory directory and up to
the parent again when doing so.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/buildhistory-diff | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/buildhistory-diff b/scripts/buildhistory-diff
index d8ca12d..e03ccc5 100755
--- a/scripts/buildhistory-diff
+++ b/scripts/buildhistory-diff
@@ -46,6 +46,11 @@ def main():
sys.exit(1)
if not os.path.exists(options.buildhistory_dir):
+ if options.buildhistory_dir == 'buildhistory/':
+ cwd = os.getcwd()
+ if os.path.basename(cwd) == 'buildhistory':
+ options.buildhistory_dir = cwd
+ if not os.path.exists(options.buildhistory_dir):
sys.stderr.write('Buildhistory directory "%s" does not exist\n\n' % options.buildhistory_dir)
parser.print_help()
sys.exit(1)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list