From 4498eca19bcf79cef2fd71e8ab0938371c6cba71 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 21 Sep 2009 18:24:24 -0400 Subject: 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 --- misc-scripts/make-sourceball | 4 ++-- 1 file 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 -- cgit v1.2.3-24-g4f1b