diff --git a/.bin/pkg-depends b/.bin/pkg-depends index e280531..6385013 100755 --- a/.bin/pkg-depends +++ b/.bin/pkg-depends @@ -13,7 +13,7 @@ _usage() { echo " -t - list test dependencies" echo " -p - show packges names (default)" echo " -P - show port paths" - echo " -d - download packages" + echo " -d - download packages to " echo echo "Only one flavor / subpackage in pkgpath(7) is supported." exit 2 @@ -100,6 +100,10 @@ _handle_list() { fi echo "Figuring out recursive dependencies, this may take some time..." + # FIXME: even though the list ist sorted -u this is only true for + # pkgpath, as textproc/libical and textproc/libical,-main are the + # going to be the same package. Simply stripping off all ,-main + # could fix it.. but it doesn't feel right. _do_sql "$1" "$_deps" | sort -u | while read line do _portpath=$(echo "$line" | cut -d"|" -f1) @@ -144,14 +148,14 @@ _handle_list() { fi done - # XXX: Are both variables needed? if [ -n "$_dldir" ] then + # XXX: Are both variables needed? echo "Set the following environmane variables to enable offline installation:" echo "$ export TRUSTED_PKG_PATH=\"$(readlink -f "$_dldir")\"" echo "$ export PKG_PATH=\"$(readlink -f "$_dldir")\"" - # FIXME: name the package that has been downloaded. But to translate the - # pkgpath to the package name, another sqlports db call would be necessary. + # FIXME: name the package that has been downloaded. But to translate $1 + # to the package name, another sqlports db call would be necessary. # There is also pkg_info -e ..., but that only works for alread installed # packages. echo "$ pkg_add "