Update 2024-12-31 15:03 OpenBSD/amd64-t14
This commit is contained in:
parent
d8fff6ec32
commit
6b2b5ae779
@ -13,7 +13,7 @@ _usage() {
|
||||
echo " -t - list test dependencies"
|
||||
echo " -p - show packges names (default)"
|
||||
echo " -P - show port paths"
|
||||
echo " -d <dir> - download packages"
|
||||
echo " -d <dir> - download packages to <dir>"
|
||||
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 <package>"
|
||||
|
Loading…
Reference in New Issue
Block a user