Update 2024-12-31 15:03 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id 2024-12-31 15:03:55 +01:00
parent d8fff6ec32
commit 6b2b5ae779

View File

@ -13,7 +13,7 @@ _usage() {
echo " -t - list test dependencies" echo " -t - list test dependencies"
echo " -p - show packges names (default)" echo " -p - show packges names (default)"
echo " -P - show port paths" echo " -P - show port paths"
echo " -d <dir> - download packages" echo " -d <dir> - download packages to <dir>"
echo echo
echo "Only one flavor / subpackage in pkgpath(7) is supported." echo "Only one flavor / subpackage in pkgpath(7) is supported."
exit 2 exit 2
@ -100,6 +100,10 @@ _handle_list() {
fi fi
echo "Figuring out recursive dependencies, this may take some time..." 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_sql "$1" "$_deps" | sort -u | while read line
do do
_portpath=$(echo "$line" | cut -d"|" -f1) _portpath=$(echo "$line" | cut -d"|" -f1)
@ -144,14 +148,14 @@ _handle_list() {
fi fi
done done
# XXX: Are both variables needed?
if [ -n "$_dldir" ] if [ -n "$_dldir" ]
then then
# XXX: Are both variables needed?
echo "Set the following environmane variables to enable offline installation:" echo "Set the following environmane variables to enable offline installation:"
echo "$ export TRUSTED_PKG_PATH=\"$(readlink -f "$_dldir")\"" echo "$ export TRUSTED_PKG_PATH=\"$(readlink -f "$_dldir")\""
echo "$ export PKG_PATH=\"$(readlink -f "$_dldir")\"" echo "$ export PKG_PATH=\"$(readlink -f "$_dldir")\""
# FIXME: name the package that has been downloaded. But to translate the # FIXME: name the package that has been downloaded. But to translate $1
# pkgpath to the package name, another sqlports db call would be necessary. # to the package name, another sqlports db call would be necessary.
# There is also pkg_info -e ..., but that only works for alread installed # There is also pkg_info -e ..., but that only works for alread installed
# packages. # packages.
echo "$ pkg_add <package>" echo "$ pkg_add <package>"