diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-02-05 01:06:45 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-02-05 01:06:45 +0100 |
commit | 5b9f538ffc1b338b452e9a46260db80346075622 (patch) | |
tree | 4083b7a8e54a3b5936142a7a10aa71436f571a17 /bin | |
parent | 5dd3bd2bf948bc97c5c309666e55ff074654a9ee (diff) | |
download | buildscripts-5b9f538ffc1b338b452e9a46260db80346075622.tar.gz buildscripts-5b9f538ffc1b338b452e9a46260db80346075622.tar.bz2 buildscripts-5b9f538ffc1b338b452e9a46260db80346075622.zip |
bin/build-rpm-package: also clean up old SRPM's.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-rpm-package | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package index 3ae5b2c..235a741 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -145,7 +145,8 @@ clear_pkgdist() { test -z $CODENAMES || echo $line | grep $CODENAMES || break - for l_ARCH in x86_64 i386; do + # Yes, "SRPM" is technically not an architecture. + for l_ARCH in x86_64 i386 SRPM; do if [ "x$SKIP_ARCH" != "x$l_ARCH" ]; then mkdir -p "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH" rm -f "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH/rpmbuild/SOURCES/"* |