]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - bin/remove.sh
- cosmetics
[projects/pld-ftp-admin.git] / bin / remove.sh
index e14c920bdfab905899e3a1fab38995c242008a5e..5894a6fe9f4abaf123c35af152db52d33526ff8c 100755 (executable)
@@ -23,20 +23,20 @@ if [ ! -d "$FTP_DIR/$1" ]; then
        exit
 fi
 
-# we set $tree and $files
+# we set $tree and $pkglist
 tree=$1
-files=""
+pkglist=""
 
 waserror=0
 shift 1
 while test "$#" -gt "0"
 do
-       file=`echo $1|sed -e 's,.src.rpm$,,'`
-       if [ ! -f "$FTP_DIR/$tree/SRPMS/.metadata/$file.src.rpm.info" ]; then
+       pkg=`echo $1|sed -e 's,.src.rpm$,,'`
+       if [ ! -f "$FTP_DIR/$tree/SRPMS/.metadata/$pkg.src.rpm.info" ]; then
                waserror=$(($waserror+1))
-               echo "$file was not found in source tree"
+               echo "$pkg was not found in source tree"
        fi
-       files="$files $file"
+       pkglist="$pkglist $pkg"
        shift
 done
 
@@ -47,10 +47,10 @@ fi
 
 if [ "$REMOVEOLDER" == "yes" ]; then
        # Remove packages older than the ones we're removing
-       olderpkgs=`find_older_pkgs "$tree" "$files"`
+       olderpkgs=`find_older_pkgs "$tree" "$pkglist"`
        remove_pkgs "$tree" "$olderpkgs"
 fi
 
 # Remove given packages
-remove_pkgs "$tree" "$files"
+remove_pkgs "$tree" "$pkglist"
 
This page took 0.079562 seconds and 4 git commands to generate.