]> code.ossystems Code Review - openembedded-core.git/commitdiff
install-buildtools: add option to disable checksum validation
authorRoss Burton <ross.burton@arm.com>
Mon, 15 Jun 2020 13:44:14 +0000 (14:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Jun 2020 14:20:01 +0000 (15:20 +0100)
The --check option turns on checksum validation, but it defaults to 'on'
so is pointless.  Add a corresponding --no-check option to turn off
validation.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/install-buildtools

index a9173fa096d4f3282bb26ac0877c216acdc6344b..69ce9a1f054f1d758214bee42cc9a5856a679fb5 100755 (executable)
@@ -154,9 +154,11 @@ def main():
     group.add_argument('--without-extended-buildtools', action='store_false',
                        dest='with_extended_buildtools',
                        help='disable extended buildtools (traditional buildtools tarball)')
-    parser.add_argument('-c', '--check', help='enable md5 checksum checking',
-                        default=True,
-                        action='store_true')
+    group = parser.add_mutually_exclusive_group()
+    group.add_argument('-c', '--check', help='enable checksum validation',
+                        default=True, action='store_true')
+    group.add_argument('-n', '--no-check', help='disable checksum validation',
+                        dest="check", action='store_false')
     parser.add_argument('-D', '--debug', help='enable debug output',
                         action='store_true')
     parser.add_argument('-q', '--quiet', help='print only errors',