Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-17 10:07:21 +0200
committerErich Eckner <git@eckner.net>2019-04-17 10:07:21 +0200
commitea435216927cfd1cb2ee0eda77768f47808791c0 (patch)
treec09808eb3afaf9a0d0a6b0ebc0648babe8339893
parented1e0d402aa0792a1e7870d9050db22b3460f136 (diff)
generate-bug-report: print suggested title, too
-rwxr-xr-xgenerate-bug-report13
1 files changed, 13 insertions, 0 deletions
diff --git a/generate-bug-report b/generate-bug-report
index e599352..7a19bcc 100755
--- a/generate-bug-report
+++ b/generate-bug-report
@@ -27,6 +27,7 @@ if ! makepkg_info=$(makepkg --verifysource 2>&1); then
makepkg --verifysource 2>&1
)
fail_command='makepkg --verifysource'
+ title='source error'
else
>&2 echo 'Nothing wrong with upstream'"'"'s source - should I try to build? (empty="yes")'
read -r s
@@ -50,6 +51,7 @@ else
>&2 echo 'Builds fine on x86_64.'
exit
fi
+ title='fails to build in clean chroot'
bug_report='extra-x86_64-build fails with:'
fail_command='extra-x86_64-build'
log='full log is attached'
@@ -57,6 +59,17 @@ else
fi
printf 'Bug report:\n\n'
+printf 'Title: [%s] %s\n' \
+ "$(
+ basename "$(
+ dirname "$(
+ dirname "$(
+ pwd
+ )"
+ )"
+ )"
+ )" \
+ "${title}"
printf 'Description:\n\n'
printf '%s\n' "${bug_report}"
printf 'Additional info:\n'