< prev index next >

src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxDebBundler.java

Print this page

        

@@ -37,10 +37,11 @@
 import java.nio.file.attribute.PosixFilePermissions;
 import java.text.MessageFormat;
 import java.util.*;
 import java.util.regex.Pattern;
 import java.util.stream.Stream;
+import static jdk.jpackage.internal.LinuxAppBundler.LINUX_INSTALL_DIR;
 
 import static jdk.jpackage.internal.StandardBundlerParam.*;
 import static jdk.jpackage.internal.LinuxPackageBundler.I18N;
 
 public class LinuxDebBundler extends LinuxPackageBundler {

@@ -361,12 +362,13 @@
         return data;
     }
 
     private File getConfig_CopyrightFile(Map<String, ? super Object> params) {
         PlatformPackage thePackage = createMetaPackage(params);
-        return thePackage.sourceRoot().resolve(Path.of("usr/share/doc",
-                thePackage.name(), "copyright")).toFile();
+        return thePackage.sourceRoot().resolve(Path.of(".",
+                LINUX_INSTALL_DIR.fetchFrom(params), PACKAGE_NAME.fetchFrom(
+                params), "share/doc/copyright")).toFile();
     }
 
     private File buildDeb(Map<String, ? super Object> params,
             File outdir) throws IOException {
         File outFile = new File(outdir,
< prev index next >