Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 15 lines 783 B view raw
1diff --git i/gr-utils/modtool/core/newmod.py w/gr-utils/modtool/core/newmod.py 2index 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"),