rpm-software-management / mock

Mock is a tool for a reproducible build of RPM packages.
GNU General Public License v2.0
376 stars 220 forks source link

ChrootScan: don't fail for missing option #1325

Closed praiskup closed 4 months ago

praiskup commented 4 months ago

I just tried to comment-out the 'tarball' option, and Mock started to fail with KeyError traceback. It's better to use config_opts.get().

While on it, fix documentation to suggest configuration that is not prone to this kind of errors (the default values stay defined).

tkopecek commented 4 months ago

LGTM

praiskup commented 4 months ago

Again, merging early as a quick follow-up for #1324

praiskup commented 4 months ago

Thank you for checking!