Skip to content

Commit

Permalink
Fix combine concatenate bug
Browse files Browse the repository at this point in the history
- Fixed issue where existing destination path causes combine to fail in
  concatenate mode (limited to '*.conf.spec' files.)
  • Loading branch information
lowell80 committed Apr 20, 2022
1 parent 7b0452c commit 784eee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ksconf/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def physical_paths(l: LayerRootBase.File):
del content
smart_rc = SMART_CREATE
if os.path.isfile(dest_path):
with open(dest) as stream:
with open(dest_path) as stream:
dest_content = stream.read()
if dest_content == combined_content:
smart_rc = SMART_NOCHANGE
Expand Down

0 comments on commit 784eee2

Please sign in to comment.