diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-09-02 07:18:28 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-09-02 07:18:28 +0200 |
commit | 0730a707da94ff30b94c1f7829c8d247ddf0eeb2 (patch) | |
tree | 313653f1912d074121efd9c3933fa6b2136573f7 /misc-scripts/make-sourceball | |
parent | 4bef49c9d906a5388027eb5cbe694b0b6b93e807 (diff) | |
download | dbscripts-0730a707da94ff30b94c1f7829c8d247ddf0eeb2.tar.gz dbscripts-0730a707da94ff30b94c1f7829c8d247ddf0eeb2.tar.xz |
Correctly remove old sourceballs without removing the wrong files
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-x | misc-scripts/make-sourceball | 8 |
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 |