]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
gnulib-tool.py: Use --symlink or --hardlink for local modules.
authorCollin Funk <collin.funk1@gmail.com>
Fri, 6 Mar 2026 06:22:41 +0000 (22:22 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Fri, 6 Mar 2026 06:22:41 +0000 (22:22 -0800)
Reported by Pádraig Brady in
<https://lists.gnu.org/r/coreutils/2026-03/msg00015.html>.

* pygnulib/GLConfig.py (__init__): If --local-symlink or
--local-hardlink are not specified, use the value specified by --symlink
or --hardlink for local modules instead of copying.

ChangeLog
pygnulib/GLConfig.py

index 4941dc027fcd5c91aaa9ec7b0ff3e90763ef871f..ac883e1de1cf8c676d7ffeda76b758510ff75dbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-03-05  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Use --symlink or --hardlink for local modules.
+       Reported by Pádraig Brady in
+       <https://lists.gnu.org/r/coreutils/2026-03/msg00015.html>.
+       * pygnulib/GLConfig.py (__init__): If --local-symlink or
+       --local-hardlink are not specified, use the value specified by --symlink
+       or --hardlink for local modules instead of copying.
+
 2026-03-03  Bruno Haible  <bruno@clisp.org>
 
        Don't use 'typeof' built-in with -std=c99 or -std=c11.
index 1874e0f27b906857b0749bda9c3f22e0dbffd2ae..528ff91106404b0d507176f816561d6a5a447228 100644 (file)
@@ -209,8 +209,8 @@ class GLConfig:
         # lcopymode (--local-symlink and --local-hardlink)
         self.resetLCopyMode()
         if lcopymode == None:
-            # Default to copying.
-            lcopymode = CopyAction.Copy
+            # Default to the mode used for non-local modules.
+            lcopymode = copymode
         self.setLCopyMode(lcopymode)
         # configure_ac
         self.resetAutoconfFile()