summaryrefslogtreecommitdiff
path: root/misc-scripts/make-sourceball
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-09-21 18:24:24 -0400
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-21 18:24:24 -0400
commit4498eca19bcf79cef2fd71e8ab0938371c6cba71 (patch)
tree4be26b01d2823a04ce6bcb9cdae1f0b216a3c206 /misc-scripts/make-sourceball
parent29b56cd5e289a35a24459af70dd6678b0c55cb9b (diff)
Modify sourceball remove_old function
The revampled getpkgname/getpkgver functions need the full path to the file now, not just the filename Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-xmisc-scripts/make-sourceball4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index f2d8415..11fac06 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -110,7 +110,7 @@ remove_old() {
done
for pkg in "$srcpath/$pkgname-"*; do
- pkg="$(basename $pkg)"
+ [ -f "$pkg" ] || continue
if [ "$(getpkgname $pkg)" == "$pkgname" ]; then
skip=0
pver="$(getpkgver $pkg)"
@@ -121,7 +121,7 @@ remove_old() {
fi
done
if [ $skip -ne 1 ]; then
- rm -f "$srcpath/$pkg"
+ rm -f "$pkg"
fi
fi
done