Commit 989d6514 authored by Vitaly Lipatov's avatar Vitaly Lipatov

config: add check if _topdir is incorrect default /usr/src/RPM

parent 05ffd5c4
......@@ -31,6 +31,8 @@ RPMBUILD=rpmbuild
# CHECKME: works only on ALT?
if which rpm 2>/dev/null >/dev/null ; then
RPMDIR=$(rpm --eval %_topdir) || fatal
[ "$RPMDIR" = "/usr/src/RPM" ] && fatal "Please, set %_topdir in ~/.rpmmacros.
"
RPMTMPDIR=$(rpm --eval %_tmppath) || fatal
# TODO: get from git also?
......
Markdown is supported
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