From 08db263cdc65351afcfe55fbd6347f4ff1981e15 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Mon, 13 Apr 2020 16:11:26 -0700 Subject: [PATCH] Fix buildreq_cache handling The fourth argument to `parse_config_files` is supposed to be the content (tarball) version, not the Content instance itself. The buildreq_cache file handling in `parse_config_files` is the only code affected by the bug. Signed-off-by: Patrick McCarty --- autospec/autospec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autospec/autospec.py b/autospec/autospec.py index 4a50eac..c0e6840 100644 --- a/autospec/autospec.py +++ b/autospec/autospec.py @@ -275,7 +275,7 @@ def package(args, url, name, archives, workingdir, infile_dict): conf.config_file = args.config requirements = buildreq.Requirements(content.url) requirements.set_build_req() - conf.parse_config_files(package.download_path, args.bump, filemanager, content, requirements) + conf.parse_config_files(package.download_path, args.bump, filemanager, content.version, requirements) conf.setup_patterns(conf.failed_pattern_dir) conf.parse_existing_spec(package.download_path, content.name)