diff --git a/tools/update-packaging/make_incremental_updates.py b/tools/update-packaging/make_incremental_updates.py index e4d64e83d6c0..596a1d61076c 100755 --- a/tools/update-packaging/make_incremental_updates.py +++ b/tools/update-packaging/make_incremental_updates.py @@ -362,16 +362,16 @@ def main(argv): usage() sys.exit() elif opt in ("-f", "--patchlist_file"): - patchlist_filename = arg + patchlist_file = arg except getopt.GetoptError: usage() sys.exit(2) - if not patchlist_filename: + if not patchlist_file: usage() sys.exit(2) - create_partial_patches(patchlist_filename) + create_partial_patches(patchlist_file) if __name__ == "__main__": main(sys.argv[1:])