summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-07-08 20:13:39 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-07-08 20:13:39 +0200
commit6440e3475c0a2ae937552ab2eae5cf4a25816874 (patch)
tree0da64999fa55812a446537a06d68ea4beee06ccd /redhat/genrpm.sh
parenta9c7fbd0a5b9159a670f490f5f555f2d5f852fd6 (diff)
downloadtde-packaging-6440e3475c0a2ae937552ab2eae5cf4a25816874.tar.gz
tde-packaging-6440e3475c0a2ae937552ab2eae5cf4a25816874.zip
RPM Packaging: minor update
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index 0ea182e45..3842b4c0b 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -198,6 +198,9 @@ rpmbuild -ba \
eval "$(grep ^RET= ${LOGFILE})"
set +x
+# Removes temporary source directory
+rm -rf "${SOURCEDIR}"
+
if [ "${RET}" -gt 0 ]; then
exit ${RET}
fi
@@ -208,7 +211,6 @@ if grep -q "error: Failed build dependencies:" ${LOGFILE}; then
exit 2
fi
-set -x
rm -rf "${SOURCEDIR}"
# Removes BUILDDIR if build succeeded