diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-16 09:23:53 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-16 09:23:53 +0100 |
commit | 4eea32cf9eab1c1b48eea402a349c275a8782e78 (patch) | |
tree | d5f49e2cced23163d39da74031fe4ed0bf35523e /bin/build-rpm-package | |
parent | 1976d1ca7da1443f325a085a91ef0c25bf8ef030 (diff) | |
download | buildscripts-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-x | bin/build-rpm-package | 6 |
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 |