Merge pull request #9277 from reitermarkus/app-source-not-there
Add debug information for empty BOM error.
This commit is contained in:
commit
63dead36cc
@ -91,8 +91,10 @@ module UnpackStrategy
|
|||||||
Tempfile.open(["", ".bom"]) do |bomfile|
|
Tempfile.open(["", ".bom"]) do |bomfile|
|
||||||
bomfile.close
|
bomfile.close
|
||||||
|
|
||||||
|
bom = path.bom
|
||||||
|
|
||||||
Tempfile.open(["", ".list"]) do |filelist|
|
Tempfile.open(["", ".list"]) do |filelist|
|
||||||
filelist.puts(path.bom)
|
filelist.puts(bom)
|
||||||
filelist.close
|
filelist.close
|
||||||
|
|
||||||
system_command! "mkbom",
|
system_command! "mkbom",
|
||||||
@ -100,9 +102,14 @@ module UnpackStrategy
|
|||||||
verbose: verbose
|
verbose: verbose
|
||||||
end
|
end
|
||||||
|
|
||||||
system_command! "ditto",
|
result = system_command! "ditto",
|
||||||
args: ["--bom", bomfile.path, "--", path, unpack_dir],
|
args: ["--bom", bomfile.path, "--", path, unpack_dir],
|
||||||
verbose: verbose
|
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")
|
||||||
|
end
|
||||||
|
|
||||||
FileUtils.chmod "u+w", Pathname.glob(unpack_dir/"**/*", File::FNM_DOTMATCH).reject(&:symlink?)
|
FileUtils.chmod "u+w", Pathname.glob(unpack_dir/"**/*", File::FNM_DOTMATCH).reject(&:symlink?)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user