summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-12-16 09:23:53 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-12-16 09:23:53 +0100
commit4eea32cf9eab1c1b48eea402a349c275a8782e78 (patch)
treed5f49e2cced23163d39da74031fe4ed0bf35523e /bin/build-rpm-package
parent1976d1ca7da1443f325a085a91ef0c25bf8ef030 (diff)
downloadbuildscripts-4eea32cf9eab1c1b48eea402a349c275a8782e78.tar.gz
buildscripts-4eea32cf9eab1c1b48eea402a349c275a8782e78.tar.bz2
buildscripts-4eea32cf9eab1c1b48eea402a349c275a8782e78.zip
fix clean up of old RPM builds
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 410ad4c..6b2dcc6 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -93,9 +93,6 @@ set_vars() {
}
prepare_workspace() {
- # create rpmbuild subdirectories
- mkdir -p $PKGDIST/rpmbuild/SOURCES
-
# make sure our local working copy is up to date...
if [ -d "$PROJECT_DIR/.git" ]; then
cd "$PROJECT_DIR" && git reset --hard
@@ -144,8 +141,7 @@ clear_pkgdist() {
mkdir -p "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH"
rm -f "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/rpmbuild/SOURCES/"*
rm -f "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/rpmbuild/SRPMS/$PROJECT-"*.src.rpm
- rm -f "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/"*.log
- rm -f "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/$PROJECT-"*.rpm
+ rm -f "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/"*.rpm
fi
done
done