diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-22 00:24:24 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-22 00:24:24 +0200 |
commit | 4498eca19bcf79cef2fd71e8ab0938371c6cba71 (patch) | |
tree | 4be26b01d2823a04ce6bcb9cdae1f0b216a3c206 /misc-scripts/make-sourceball | |
parent | 29b56cd5e289a35a24459af70dd6678b0c55cb9b (diff) | |
download | dbscripts-4498eca19bcf79cef2fd71e8ab0938371c6cba71.tar.gz dbscripts-4498eca19bcf79cef2fd71e8ab0938371c6cba71.tar.xz |
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-x | misc-scripts/make-sourceball | 4 |
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 |