Changeset 6 for banobsd/trunk


Ignore:
Timestamp:
Nov 22, 2009, 2:18:19 PM (15 years ago)
Author:
Rick van der Zwet
Message:

Somehow more error,checky

File:
1 edited

Legend:

Unmodified
Added
Removed
  • banobsd/trunk/pkg_download.sh

    r5 r6  
    1313OS_RELEASE=`sysctl -n kern.osrelease | awk -F- '{print $1}'`
    1414PKGURL=ftp://ftp.nl.freebsd.org/pub/FreeBSD/ports/i386/packages-${OS_RELEASE}-release/All
    15 PKGDIR=/tmp/packages
     15PKGDIR=$(cd `dirname $0`; pwd -P)/packages
    1616
    1717echo "# Using PKGURL $PKGURL"
     
    2323
    2424err_failed() {
    25   echo "FAILED"
     25  echo "$*FAILED" 1>&2
    2626  rm -R $TMPDIR
    2727  exit 1
     
    4545for package in $PACKAGELIST; do
    4646  pkg=`awk -F\| "/\/$package\|/ {print \\$1}" INDEX`
     47  if [ -z "$pkg" ]; then
     48    err_failed "# Finding version of $package "
     49  fi
    4750  printf "## %-${len}s -> $pkg\n" $package
    4851  PACKAGES="${PACKAGES} $pkg"
Note: See TracChangeset for help on using the changeset viewer.