Skip to content
Snippets Groups Projects
Unverified Commit da2d80cd authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #9282 from reitermarkus/app-source-not-there

Add more BOM debug information.
parents 6cb7d584 b9fc7e10
No related branches found
No related tags found
No related merge requests found
......@@ -106,9 +106,18 @@ module UnpackStrategy
args: ["--bom", bomfile.path, "--", path, unpack_dir],
verbose: verbose
odebug "BOM contents:", bom
if result.stderr.include?("contains no files, nothing copied")
odebug "Directory contents:", Pathname.glob(path/"**/*", File::FNM_DOTMATCH).map(&:to_s).join("\n")
all_paths_find = system_command("find", args: [".", "-print0"], chdir: path, print_stderr: false)
.stdout
.split("\0")
all_paths_ruby = Pathname.glob(path/"**/*", File::FNM_DOTMATCH)
.map { |p| p.relative_path_from(path).to_s }
odebug "BOM contents:", bom
odebug "BOM contents (retry):", path.bom
odebug "Directory contents (find):", all_paths_find.join("\n")
odebug "Directory contents (Ruby):", all_paths_ruby.join("\n")
end
FileUtils.chmod "u+w", Pathname.glob(unpack_dir/"**/*", File::FNM_DOTMATCH).reject(&:symlink?)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment