Skip to content

Commit

Permalink
Bug Fix: Its not an error if copy_file(src, dst) when src non-existent.
Browse files Browse the repository at this point in the history
  => copying to production failed incorrectly if a tlsa file was missing when none was needed/generated
  • Loading branch information
Gene C committed Dec 13, 2024
1 parent f22ca04 commit 602e1c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "ssl-mgr"
copyright = '2023, Gene C'
author = 'Gene C'
release = '4.9.0'
release = '5.0.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion packaging/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pkgname='ssl-mgr'
pkgdesc='Manage (re)new certificates and handle DANE TLSA key rollover'
_gitname='ssl-mgr'

pkgver=4.9.0
pkgver=5.0.0
pkgrel=1
url="https://github.com/gene-git/ssl-mgr"

Expand Down
2 changes: 1 addition & 1 deletion src/ssl_mgr/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"""
Project ssl-mgr
"""
__version__ = "4.9.0"
__version__ = "5.0.0"
3 changes: 3 additions & 0 deletions src/ssl_mgr/utils/read_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def copy_file_atomic(src, dst, log=print):
"""
Copy local file from src to dst
"""
if not os.path.exists(src):
return True

fob = open_file(src, "r")
if not fob:
return False
Expand Down

0 comments on commit 602e1c0

Please sign in to comment.