Deleted Added
full compact
27c27
< # $FreeBSD: head/usr.sbin/bsdconfig/share/packages/packages.subr 258265 2013-11-17 17:42:15Z dteske $
---
> # $FreeBSD: head/usr.sbin/bsdconfig/share/packages/packages.subr 258267 2013-11-17 17:53:55Z dteske $
974c974,975
< local path
---
> local path device_type
> device_$device get type device_type
977c978,983
< *) path="All/$name" ;;
---
> *)
> if [ "$device_type" = "$DEVICE_TYPE_HTTP" ]; then
> path="$PKG_ABI/latest/All/$name"
> else
> path="packages/$PKG_ABI/All/$name"
> fi
985,986d990
< f_dprintf "$funcname: found path=[%s] dev=[%s]" \
< "$path" "$device"
988a993,1000
> elif [ "$device_type" = "$DEVICE_TYPE_HTTP" ] &&
> f_device_get $device \
> "packages/$PKG_ABI/All/$name$pkg_ext" $PROBE_EXIST
> then
> # Mirroring physical media over HTTP
> path="packages/$PKG_ABI/All/$name$pkg_ext"
> found=1
> break
990a1003,1004
> [ "$found" ] && f_dprintf "$funcname: found path=[%s] dev=[%s]" \
> "$path" "$device"