Handle building inside docker.

meow-7.2.2
Nicky 2019-02-11 22:52:02 +01:00
parent 8d1bc7868b
commit 5f3f04d56f
1 changed files with 5 additions and 0 deletions

View File

@ -1515,6 +1515,11 @@ class LinuxManifest(ViewerManifest):
if snapStage != None:
print( "Building flatpak package" )
if snapStage == None:
data = open( "/proc/1/cgroup", "r" ).readlines()[0]
if "docker" in data:
snapStage = "/usr"
pkgBase = os.path.join(os.pardir, 'packages', 'lib', 'release')
if snapStage != None:
pkgBase = os.path.join( snapStage, "lib" )