Skip to content

Commit

Permalink
fix: usr: Rendered files will now have the same permissions as the so…
Browse files Browse the repository at this point in the history
…urce files.
  • Loading branch information
carlos-jenkins committed Feb 4, 2020
1 parent dae18d1 commit f00a1cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ninjecto/core.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017-2019 KuraLabs S.R.L
# Copyright (C) 2017-2020 KuraLabs S.R.L
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -115,6 +115,7 @@ def process_file(self, src, dstdir, filename=None, levels=None):
dst.write_text(
content, encoding=config.output.encoding,
)
dst.chmod(src.stat().st_mode)

return 1

Expand All @@ -123,6 +124,7 @@ def process_file(self, src, dstdir, filename=None, levels=None):

if not dry_run:
dst.mkdir(exist_ok=override)
dst.chmod(src.stat().st_mode)

processed = 1
levels = None if levels is None else levels - 1
Expand Down

0 comments on commit f00a1cb

Please sign in to comment.