From ead0c3e12d16eef981af83f366eb777a76fd3ac4 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Mon, 27 Mar 2023 10:19:52 -0700 Subject: [PATCH] Only vendor if cargo_vendor is true not just if it exists Signed-off-by: William Douglas --- vendor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vendor.py b/vendor.py index ef3d200..84c175d 100755 --- a/vendor.py +++ b/vendor.py @@ -21,8 +21,9 @@ def vendor_check(): config.read('options.conf') if 'autospec' not in config.sections(): return False - if config['autospec'].get('cargo_vendor'): - return 'cargo' + if vendor := config['autospec'].get('cargo_vendor'): + if vendor: + return 'cargo' return False