summaryrefslogtreecommitdiffstats
path: root/misc-scripts/make-sourceball
diff options
context:
space:
mode:
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-xmisc-scripts/make-sourceball8
1 files changed, 7 insertions, 1 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index ea5ef49..7f75fe8 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -52,7 +52,13 @@ create_srcpackage() {
if [ ! -d "$srcpath" ]; then
mkdir -p "$srcpath"
fi
- rm -f "$srcpath/${pkgname}-*-*${SRCEXT}"
+ #Remove old sourceballs
+ for pkg in "$srcpath/$pkgname-*"; do
+ pkg="$(basename $pkg)"
+ if "$(getpkgname $pkg)" == "$pkgname" ]; then
+ rm -f "$srcpath/$pkg"
+ fi
+ done
cp $pkg_file "$srcpath"
return 0