Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jean-Paul Smets
slapos
Commits
53bd71db
Commit
53bd71db
authored
Jan 31, 2017
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
component/wkhtmltopdf: fix xz: no such file or directory
parent
887cc729
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
component/wkhtmltopdf/buildout.cfg
component/wkhtmltopdf/buildout.cfg
+6
-2
No files found.
component/wkhtmltopdf/buildout.cfg
View file @
53bd71db
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
extends =
extends =
../fontconfig/buildout.cfg
../fontconfig/buildout.cfg
../xz-utils/buildout.cfg
../tar/buildout.cfg
../tar/buildout.cfg
../xorg/buildout.cfg
../xorg/buildout.cfg
parts =
parts =
tar
wkhtmltopdf
wkhtmltopdf
[wkhtmltopdf]
[wkhtmltopdf]
...
@@ -25,6 +25,7 @@ script =
...
@@ -25,6 +25,7 @@ script =
location = %(location)r
location = %(location)r
self.failIfPathExists(location)
self.failIfPathExists(location)
import sys
import sys
import os
ARCH_DIR_MAP = { 'x86': 'x86', 'x86-64': 'x86_64' }
ARCH_DIR_MAP = { 'x86': 'x86', 'x86-64': 'x86_64' }
WK_SUFIX_MAP = { 'x86': 'i386', 'x86-64': 'amd64' }
WK_SUFIX_MAP = { 'x86': 'i386', 'x86-64': 'amd64' }
platform = guessPlatform()
platform = guessPlatform()
...
@@ -35,7 +36,10 @@ script =
...
@@ -35,7 +36,10 @@ script =
extract_dir = tempfile.mkdtemp(self.name)
extract_dir = tempfile.mkdtemp(self.name)
self.cleanup_dir_list.append(extract_dir)
self.cleanup_dir_list.append(extract_dir)
self.logger.debug('Created working directory ' + repr(extract_dir))
self.logger.debug('Created working directory ' + repr(extract_dir))
call(["${tar:location}/bin/tar", "xJf", path, "-C", extract_dir])
env = os.environ.copy()
env["PATH"] = "${tar:location}/bin:${xz-utils:location}/bin" + (":" + env["PATH"] if env.get("PATH") else "")
env["LD_LIBRARY_PATH"] = "${xz-utils:location}/lib" + (":" + env["LD_LIBRARY_PATH"] if env.get("LD_LIBRARY_PATH") else "")
call(["tar", "xJf", path, "-C", extract_dir], env=env)
shutil.move(os.path.join(extract_dir, "wkhtmltox"), location)
shutil.move(os.path.join(extract_dir, "wkhtmltox"), location)
wrapper_location = os.path.join("%(location)s", "wkhtmltopdf")
wrapper_location = os.path.join("%(location)s", "wkhtmltopdf")
wrapper = open(wrapper_location, 'w')
wrapper = open(wrapper_location, 'w')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment