scripts: use config file to set AUTHOR

The copr-dist-git package uses those scripts directly, without
explicitly setting $AUTHOR variable.
This commit is contained in:
Pavel Raiskup 2017-01-09 13:36:43 +01:00
parent efa5ab8baf
commit 994f476ece
3 changed files with 3 additions and 2 deletions

View file

@ -30,6 +30,7 @@ Requires: python-requests
Requires: mod_ssl
Requires: fedmsg
Requires: cronie
Requires: crudini
Requires(pre): shadow-utils
%description

View file

@ -97,7 +97,7 @@ if [ -z "$BRANCH" -o -z "$PACKAGES" ] ; then
fi
if [ -z $AUTHOR ]; then
AUTHOR="Fedora Release Engineering <rel-eng@lists.fedoraproject.org>"
AUTHOR=`crudini --get /etc/dist-git/dist-git.conf git default_branch_author`
fi

View file

@ -82,7 +82,7 @@ if [ -z $PKG_OWNER_EMAILS ]; then
fi
if [ -z $AUTHOR ]; then
AUTHOR="Fedora Release Engineering <rel-eng@lists.fedoraproject.org>"
AUTHOR=`crudini --get /etc/dist-git/dist-git.conf git default_branch_author`
fi
# Sanity checks before we start doing damage