]> git.saurik.com Git - cydia.git/blobdiff - Library/firmware.sh
cydia.addPipelinedHost was never actually used :D.
[cydia.git] / Library / firmware.sh
index d2f89ebdf2b7f46ee949c5d710502f0c60281580..f7479ba8fcf4f7273d96bf227d4f24e12bffb26f 100755 (executable)
@@ -41,6 +41,7 @@ Installed-Size: 0
 Architecture: ${arch}
 Version: ${version}
 Description: ${description}
+Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 Tag: role::cydia
 EOF
 
@@ -49,11 +50,10 @@ EOF
 }
 # }}}
 
-before=$(stat -c '%i-%Y' status)
-
-output=$(mktemp status-tmp.XXXXXX)
-xxxxxx=${output##status-tmp.}
-rm -f status-tmp.!("${xxxxxx}")
+output=$(mktemp "${data}"/status-tmp.XXXXXX)
+chmod 644 "${output}"
+xxxxxx=${output##*/status-tmp.}
+rm -f "${data}"/status-tmp.!("${xxxxxx}")
 
 {
 
@@ -143,8 +143,6 @@ rm -f status-tmp.!("${xxxxxx}")
 
 } >"${output}"
 
-# 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