X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/0ca262bb9f944ea517b874260aa26a56fad4b599..367a112d938db5c80814b42c428b517e4a65efd9:/Library/firmware.sh diff --git a/Library/firmware.sh b/Library/firmware.sh index d87a564e..f7479ba8 100755 --- a/Library/firmware.sh +++ b/Library/firmware.sh @@ -41,6 +41,7 @@ Installed-Size: 0 Architecture: ${arch} Version: ${version} Description: ${description} +Maintainer: Jay Freeman (saurik) Tag: role::cydia EOF @@ -49,6 +50,11 @@ EOF } # }}} +output=$(mktemp "${data}"/status-tmp.XXXXXX) +chmod 644 "${output}" +xxxxxx=${output##*/status-tmp.} +rm -f "${data}"/status-tmp.!("${xxxxxx}") + { # Delete Old Packages {{{ @@ -101,7 +107,8 @@ EOF echo "${gssc}" | sed -re ' /^ [^ ]* = [0-9.]*;$/ ! d; s/^ ([^ ]*) = ([0-9.]*);$/\1 \2/; - s/([A-Z])/-\L\1/g; s/^"([^ ]*)"/\1/; + s/([A-Z])/-\L\1/g; + s/^"([^ ]*)"/\1/; s/^-//; / 0$/ d; ' | while read -r name value; do case "${name}" in @@ -134,9 +141,9 @@ EOF pseudo "cy+lib.corefoundation" "$(/usr/libexec/cydia/cfversion)" "virtual corefoundation dependency" -} >"${status}"_ +} >"${output}" -mv -f "${status}"{_,} +mv -f "${output}" "${status}" if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then if [[ ! -h /User && -d /User ]]; then