anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / radio / gnuradio / modtool-newmod-permissions.patch
blob671a7559f4e4a9f50a2fe22ffd2a47220ab42ca3
1 diff --git i/gr-utils/modtool/core/newmod.py w/gr-utils/modtool/core/newmod.py
2 index 8b222473f..c82fcd538 100644
3 --- i/gr-utils/modtool/core/newmod.py
4 +++ w/gr-utils/modtool/core/newmod.py
5 @@ -66,7 +66,9 @@ class ModToolNewModule(ModTool):
6 self._setup_scm(mode='new')
7 logger.info(f"Creating out-of-tree module in {self.dir}...")
8 try:
9 - shutil.copytree(self.srcdir, self.dir)
10 + # https://stackoverflow.com/a/17022146/4935114
11 + shutil.copystat = lambda x, y: x
12 + shutil.copytree(self.srcdir, self.dir, copy_function=shutil.copyfile)
13 source_dir = os.path.join(gr.prefix(), "share", "gnuradio")
14 for source_name, target_name in (
15 ("clang-format.conf", ".clang-format"),