Verified Commit 869d65ae authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

gitpkg: Only display diff if not empty

parent 27dba431
......@@ -372,8 +372,15 @@ pbw.write
system "updpkgsums"
system "makepkg", "--verifysource"
header "Diff"
IO.popen(['diff', '-u', '-', pbw.filename], "w") { |f| f.write pbr.contents }
diff = IO.popen(['diff', '-u', '-', pbw.filename], "r+") do |f|
f.write pbr.contents
f.close_write
f.read
end
unless diff.empty?
header "Diff"
puts diff, ""
end
header "Submodules"
gitmodules = repo.read_file(commit, ".gitmodules")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment