You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I'm generally unhappy that I have that /usr/share in there, and would like to have that default more configurable.
As a workaround, you can modify the mappings and symlinks after the fact:
def makeNewInstallPath(old: Path): String =
if(old startsWith "/usr/share")
// Move to where you want it
else old
linuxPackageMappings := {
val old = linuxPackageMappings.value
for(mappings <- old) yield {
val fileMappings = for {
(file, installPath) <- mappings.mappings
yield file -> makeNewInstallPath(installPath)
mappings.copy(fileData = fileMappings)
}
}
linuxPackageSymlinks := {
val old = linuxPackageSymlinks.value
for {
LinuxSymlink(link, dest) <- old
} yield LinuxSymlink(link, makeNewInstallPath(dest))
}
Need to be able to specify where the RPM puts the files it installs. We need to remove the hard coded /usr/share in GenericPackageSettings
object GenericPackageSettings {
val installLocation = "/usr/share"
}
The text was updated successfully, but these errors were encountered: