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