diff --git a/tools/fedora-helper.py b/tools/fedora-helper.py index 491ea23..17d30ad 100755 --- a/tools/fedora-helper.py +++ b/tools/fedora-helper.py @@ -131,7 +131,10 @@ def get_binary_license(ctx, source, add, verbose): if repo.iscontiguous(): repo.empty() repo.add_solv(tmp.name) - os.unlink(cache_file) + try: + os.unlink(cache_file) + except FileNotFoundError: + pass os.link(tmp.name, cache_file) repo_local = pool.add_repo("local")