[oe-commits] Paul Eggleton : scripts/create-recipe: fix handling of --help

git at git.openembedded.org git at git.openembedded.org
Thu Nov 14 14:17:02 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: abb139b10c3f431bcebb1847621f97d7ec6249ce
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=abb139b10c3f431bcebb1847621f97d7ec6249ce

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Wed Nov 13 14:32:38 2013 +0000

scripts/create-recipe: fix handling of --help

If --help is specified as the first argument, show the standard help
text instead of trying to process it as a URL.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/create-recipe | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/create-recipe b/scripts/create-recipe
index 5613e92..b192990 100755
--- a/scripts/create-recipe
+++ b/scripts/create-recipe
@@ -1794,7 +1794,7 @@ sub calculate_sums
 # Main program 
 #
 
-if ( @ARGV < 1 ) {
+if ( @ARGV < 1 || $ARGV[0] eq "--help" ) {
     print "Usage: $0 [-r] <url-of-source-tarballs>\n";
     exit(1);
 }



More information about the Openembedded-commits mailing list