X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/55589708b11f37d4f349c3a68f52bd3a1636ed8d..a07675e1d9fe1344f04b9d436c8de174d086c480:/Library/firmware.sh diff --git a/Library/firmware.sh b/Library/firmware.sh index afaae9a0..6dcb4a21 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,12 @@ EOF } # }}} +before=$(stat -c '%i-%Y' status) + +output=$(mktemp status-tmp.XXXXXX) +xxxxxx=${output##status-tmp.} +rm -f status-tmp.!("${xxxxxx}") + { # Delete Old Packages {{{ @@ -135,9 +142,11 @@ EOF pseudo "cy+lib.corefoundation" "$(/usr/libexec/cydia/cfversion)" "virtual corefoundation dependency" -} >"${status}"_ +} >"${output}" -mv -f "${status}"{_,} +# XXX: this is a poor replacement for flock +test "${before}" = "$(stat -c '%i-%Y' status)" +mv -f "${output}" "${status}" if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then if [[ ! -h /User && -d /User ]]; then