relase: get failed extract-vmlinux automation back working

Only the command is back in business, but it does not work:
https://github.com/cirosantilli/linux-kernel-module-cheat/issues/79
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-14 00:00:04 +00:00
parent 4c71ac5072
commit 7b0ac771dc
7 changed files with 156 additions and 146 deletions

View File

@@ -50,7 +50,7 @@ from the README to example sources to GitHub rather than locally.
for link in self.sh.check_output([
os.path.join(asciidoctor_dir, 'extract-link-targets'),
self.env['readme']
]).splitlines():
]).decode().splitlines():
if not external_link_re.match(link):
if not os.path.lexists(os.path.join(self.env['root_dir'], link)):
self.log_error('broken link to local file: ' + link)
@@ -63,7 +63,7 @@ from the README to example sources to GitHub rather than locally.
for header_id in self.sh.check_output([
os.path.join(asciidoctor_dir, 'extract-header-ids'),
self.env['readme']
]).splitlines():
]).decode().splitlines():
header_ids.add(header_id)
for grep_line in self.sh.check_output(
[
@@ -74,7 +74,7 @@ from the README to example sources to GitHub rather than locally.
LF
],
cwd=self.env['root_dir']
).splitlines():
).decode().splitlines():
url_index = grep_line.index(self.env['homepage_url'])
hash_start_index = url_index + len(self.env['homepage_url'])
if len(grep_line) > hash_start_index: