Skip to content

Commit facd5e3

Browse files
committed
Fixed lintian warning 'symlink-should-be-relative' for the symlinks between /usr/bin/.. and /usr/share/<app>/bin/.. files
1 parent fa4c2e3 commit facd5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/typesafe/sbt/packager/GenericPackageSettings.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ trait GenericPackageSettings
8888
if !file.isDirectory
8989
if name startsWith "bin/"
9090
if !(name endsWith ".bat") // IGNORE windows-y things.
91-
} yield LinuxSymlink("/usr/" + name, installLocation+"/"+pkg+"/"+name)
91+
} yield LinuxSymlink("/usr/" + name, installLocation.stripPrefix("/usr/")+"/"+pkg+"/"+name)
9292
},
9393
// Map configuration files
9494
linuxPackageSymlinks <++= (normalizedName in Universal, mappings in Universal, defaultLinuxInstallLocation) map { (pkg, mappings, installLocation) =>

0 commit comments

Comments
 (0)