We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 24000aa + 6002a8b commit 15c1ee1Copy full SHA for 15c1ee1
contrib/dist/linux/buildrpm.sh
@@ -267,7 +267,11 @@ fi
267
# Find where the top RPM-building directory is
268
#
269
270
-rpmtopdir=${rpmtopdir:-"`grep %_topdir $HOME/.rpmmacros | awk '{ print $2 }'`"}
+rpmtopdir=
271
+file=~/.rpmmacros
272
+if test -r $file; then
273
+ rpmtopdir=${rpmtopdir:-"`grep %_topdir $file | awk '{ print $2 }'`"}
274
+fi
275
if test "$rpmtopdir" != ""; then
276
rpmbuild_options="$rpmbuild_options --define '_topdir $rpmtopdir'"
277
if test ! -d "$rpmtopdir"; then
0 commit comments