diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-11-13 14:32:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-14 13:39:48 +0000 |
commit | 6f54fa277d411961fca37e03d3a08ab8e0d7575f (patch) | |
tree | 19b907dd07296ecd24c38cf93ce80a33e7cb7889 /scripts/create-recipe | |
parent | 9c275615dc275ee03e6cc102cbe62724112e1ca6 (diff) | |
download | poky-6f54fa277d411961fca37e03d3a08ab8e0d7575f.tar.gz |
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.
(From OE-Core rev: abb139b10c3f431bcebb1847621f97d7ec6249ce)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/create-recipe')
-rwxr-xr-x | scripts/create-recipe | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-recipe b/scripts/create-recipe index 5613e92cb9..b192990080 100755 --- a/scripts/create-recipe +++ b/scripts/create-recipe | |||
@@ -1794,7 +1794,7 @@ sub calculate_sums | |||
1794 | # Main program | 1794 | # Main program |
1795 | # | 1795 | # |
1796 | 1796 | ||
1797 | if ( @ARGV < 1 ) { | 1797 | if ( @ARGV < 1 || $ARGV[0] eq "--help" ) { |
1798 | print "Usage: $0 [-r] <url-of-source-tarballs>\n"; | 1798 | print "Usage: $0 [-r] <url-of-source-tarballs>\n"; |
1799 | exit(1); | 1799 | exit(1); |
1800 | } | 1800 | } |