diff options
author | Victor Hsieh <victorhsieh@google.com> | 2022-11-01 11:03:39 -0700 |
---|---|---|
committer | Victor Hsieh <victorhsieh@google.com> | 2022-11-01 11:07:48 -0700 |
commit | 101745a955a74dc50fa2424d09b213aa78cb5f97 (patch) | |
tree | ac813c3cf135be0922f8fadbdf49c9b329fc6305 | |
parent | 80c9936cbed6eb273fcff7b5a2457813467b73de (diff) | |
download | security-101745a955a74dc50fa2424d09b213aa78cb5f97.tar.gz |
Accept empty file list in fsverity_manifest_generator
By accepting empty file list, it allows the build rule to generate the
build_manifest.pb unconditionally. Consequently, the consuming code in
composd won't need to handle the empty case (which requires parsing the
zip entry if it's done on the host side).
Bug: 256793394
Test: m
Change-Id: I69cdfb46bb0d54a13bd72a9755b53a594e044f06
-rw-r--r-- | fsverity/fsverity_manifest_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fsverity/fsverity_manifest_generator.py b/fsverity/fsverity_manifest_generator.py index 79be591e..181758aa 100644 --- a/fsverity/fsverity_manifest_generator.py +++ b/fsverity/fsverity_manifest_generator.py @@ -50,7 +50,7 @@ if __name__ == '__main__': required=True) p.add_argument( 'inputs', - nargs='+', + nargs='*', help='input file for the build manifest') args = p.parse_args(sys.argv[1:]) |