diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index b2d82a2..b57e312 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -125,6 +125,9 @@ def local_toml(toml, version): doc_files = get_doc_files(toml) license_files = get_license_files(toml) toml = os.path.join(toml, "Cargo.toml") + else: + doc_files = [] + license_files = [] return toml, None, version, doc_files, license_files