index.subr (264840) | index.subr (267680) |
---|---|
1if [ ! "$_PACKAGES_INDEX_SUBR" ]; then _PACKAGES_INDEX_SUBR=1 2# 3# Copyright (c) 2013 Devin Teske 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1if [ ! "$_PACKAGES_INDEX_SUBR" ]; then _PACKAGES_INDEX_SUBR=1 2# 3# Copyright (c) 2013 Devin Teske 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/usr.sbin/bsdconfig/share/packages/index.subr 264840 2014-04-23 22:04:04Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/packages/index.subr 267680 2014-06-20 17:40:38Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." packages/index.subr 34f_include $BSDCFG_SHARE/device.subr 35f_include $BSDCFG_SHARE/media/common.subr --- 217 unchanged lines hidden (view full) --- 253 'mktemp -t "%s"' "$pgm" 254 then 255 # Write the temporary file contents 256 echo "$__sqlite_digest" > "$__tmpfile" 257 debug= f_getvar "$__var_to_set" >> "$__tmpfile" 258 259 # Finally, move the temporary file into place 260 case "$PACKAGES_INDEX_CACHEFILE" in | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." packages/index.subr 34f_include $BSDCFG_SHARE/device.subr 35f_include $BSDCFG_SHARE/media/common.subr --- 217 unchanged lines hidden (view full) --- 253 'mktemp -t "%s"' "$pgm" 254 then 255 # Write the temporary file contents 256 echo "$__sqlite_digest" > "$__tmpfile" 257 debug= f_getvar "$__var_to_set" >> "$__tmpfile" 258 259 # Finally, move the temporary file into place 260 case "$PACKAGES_INDEX_CACHEFILE" in |
261 */*) f_eval_catch -d $funcname mkdir \ | 261 */*) f_eval_catch -d $__funcname mkdir \ |
262 'mkdir -p "%s"' "${PACKAGES_INDEX_CACHEFILE%/*}" 263 esac 264 f_eval_catch -d $__funcname mv 'mv -f "%s" "%s"' \ 265 "$__tmpfile" "$PACKAGES_INDEX_CACHEFILE" 266 fi 267 268 f_show_info "$msg_located_index_now_reading_package_data_from_it" 269 if ! f_index_read "$__var_to_set"; then --- 204 unchanged lines hidden --- | 262 'mkdir -p "%s"' "${PACKAGES_INDEX_CACHEFILE%/*}" 263 esac 264 f_eval_catch -d $__funcname mv 'mv -f "%s" "%s"' \ 265 "$__tmpfile" "$PACKAGES_INDEX_CACHEFILE" 266 fi 267 268 f_show_info "$msg_located_index_now_reading_package_data_from_it" 269 if ! f_index_read "$__var_to_set"; then --- 204 unchanged lines hidden --- |