From 2468755541995a69fe46187e23a06f4a93f70190 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 28 Jun 2022 12:34:44 +0200 Subject: [PATCH] netsrpms: use tmpdir as %_topdir so that packager permissions are not required to write to /usr/src/RPM --- netsrpms | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netsrpms b/netsrpms index 530c34c..2868ea7 100755 --- a/netsrpms +++ b/netsrpms @@ -120,7 +120,7 @@ for pckname in $PACKAGES; do ${SPEC_PATHNAME} >> $tmpfile rpmbuild --ba \ - --define="%_rpmdir $tmpdir" \ + --define="%_topdir $tmpdir" \ --define="%_sourcedir ${SRPM_PATH}" \ $tmpfile @@ -129,7 +129,7 @@ for pckname in $PACKAGES; do notify-send -a $"Network software installation" -i $icon "$pckname" $"There was an error building"" $pckname!" exit 255 fi - RPM_PATH=`find $tmpdir -name \*.rpm` + RPM_PATH=`find ${tmpdir}/RPMS -name \*.rpm` # install rpm if [ "$FORCE_MODE" = "1" ]; then