[Git][java-team/javatools][master] jh_linkjars: Replace existing files with symlinks

Niels Thykier gitlab at salsa.debian.org
Sun Sep 30 16:46:44 BST 2018


Niels Thykier pushed to branch master at Debian Java Maintainers / javatools


Commits:
c50f4b97 by Niels Thykier at 2018-09-30T15:43:36Z
jh_linkjars: Replace existing files with symlinks

Signed-off-by: Niels Thykier <niels at thykier.net>

- - - - -


2 changed files:

- debian/changelog
- jh_linkjars


Changes:

=====================================
debian/changelog
=====================================
@@ -2,6 +2,8 @@ javatools (0.68) UNRELEASED; urgency=medium
 
   * jh_installjavadoc: Add missing install_dir call to fix FTBFS
     when the target dir does not already exist.  (Closes: #909907)
+  * jh_linkjars: Replace target files with a symlink rather than
+    failing because it exists.  (Closes: #909954)
 
  -- Niels Thykier <niels at thykier.net>  Fri, 28 Sep 2018 18:03:19 +0000
 


=====================================
jh_linkjars
=====================================
@@ -166,6 +166,7 @@ if ($UNLINK_JARS) {
         for my $jar (@JARS) {
             my $basename = basename($jar);
             verbose_print("Adding link for $jar to ${target_dir}");
+            rm_files("${target_dir}/${basename}");
             make_symlink_raw_target($jar, "${target_dir}/${basename}");
         }
     }



View it on GitLab: https://salsa.debian.org/java-team/javatools/commit/c50f4b97aaca1a7edc43be702c9378c84dcbdd1c

-- 
View it on GitLab: https://salsa.debian.org/java-team/javatools/commit/c50f4b97aaca1a7edc43be702c9378c84dcbdd1c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20180930/d31436f4/attachment.html>


More information about the pkg-java-commits mailing list