diff options
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 6e5de0ef69..3a5bc2c3e3 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -57,6 +57,9 @@ SSTATEPOSTINSTFUNCS[vardepvalueexclude] .= "| buildhistory_emit_pkghistory" | |||
57 | # class. | 57 | # class. |
58 | BUILDHISTORY_PRESERVE = "latest latest_srcrev" | 58 | BUILDHISTORY_PRESERVE = "latest latest_srcrev" |
59 | 59 | ||
60 | PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" | ||
61 | PATCH_GIT_USER_NAME ?= "OpenEmbedded" | ||
62 | |||
60 | # | 63 | # |
61 | # Write out metadata about this package for comparison when writing future packages | 64 | # Write out metadata about this package for comparison when writing future packages |
62 | # | 65 | # |
@@ -708,15 +711,9 @@ END | |||
708 | git tag -f build-minus-2 build-minus-1 > /dev/null 2>&1 || true | 711 | git tag -f build-minus-2 build-minus-1 > /dev/null 2>&1 || true |
709 | git tag -f build-minus-1 > /dev/null 2>&1 || true | 712 | git tag -f build-minus-1 > /dev/null 2>&1 || true |
710 | fi | 713 | fi |
711 | # If the user hasn't set up their name/email, set some defaults | 714 | |
712 | # just for this repo (otherwise the commit will fail with older | 715 | check_git_config |
713 | # versions of git) | 716 | |
714 | if ! git config user.email > /dev/null ; then | ||
715 | git config --local user.email "buildhistory@${DISTRO}" | ||
716 | fi | ||
717 | if ! git config user.name > /dev/null ; then | ||
718 | git config --local user.name "buildhistory" | ||
719 | fi | ||
720 | # Check if there are new/changed files to commit (other than metadata-revs) | 717 | # Check if there are new/changed files to commit (other than metadata-revs) |
721 | repostatus=`git status --porcelain | grep -v " metadata-revs$"` | 718 | repostatus=`git status --porcelain | grep -v " metadata-revs$"` |
722 | HOSTNAME=`hostname 2>/dev/null || echo unknown` | 719 | HOSTNAME=`hostname 2>/dev/null || echo unknown` |