Overview
Comment: | Set path to include the path to appfsd in appfs-cache |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
1a9a8b1256c7449a29c8153ee37b97b5 |
User & Date: | rkeene on 2019-12-13 00:06:08 |
Other Links: | manifest | tags |
Context
2019-12-13
| ||
00:06 | Upgrade to latest kitcreator in static builder check-in: 7c1528d686 user: rkeene tags: trunk | |
00:06 | Set path to include the path to appfsd in appfs-cache check-in: 1a9a8b1256 user: rkeene tags: trunk | |
00:03 | Support loading an existing key when generating a CA Cert check-in: ac33419083 user: rkeene tags: trunk | |
Changes
Modified appfs-cache from [c1af76ad48] to [dae13120c1].
︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | + + | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. # PATH="${PATH}:$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" appfsd_options=() if [ "$1" == "--cachedir" ]; then appfsd_options=("${appfsd_options[@]}" '--cachedir' "$2") shift; shift; fi |
︙ | |||
42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | site="$1" call_appfsd --sqlite3 'DELETE FROM sites WHERE hostname = '"'$site'"'; DELETE FROM packages WHERE hostname = '"'$site'"';' || return 1 clean } function mirror() { local site destinationDir local baseURL index local packageList local marker site="$1" destinationDir="$2" baseURL="http://${site}/appfs" index="${baseURL}/index" if [ ! -e "${destinationDir}" ]; then mkdir "${destinationDir}" || return 1 fi marker="$(openssl rand 20 -hex)" ( cd "${destinationDir}" || exit 1 # XXX:TODO: This does not validate the signature curl -sSL "${index}" > "index.${marker}" packageListHash="$(cat "index.${marker}" | cut -f 1 -d ,)" packageListHashMethod="$(cat "index.${marker}" | cut -f 2 -d ,)" #curl -sSL "${...}" mv "index.${marker}" index ) || return 1 return 0 } function clean() { call_appfsd --tcl "$(cat <<\_EOF_ unset -nocomplain row ::appfs::db eval {SELECT sha1, hostname FROM packages;} row { set hostname [::appfs::db onecolumn {SELECT hostname FROM sites WHERE hostname = $row(hostname) LIMIT 1;}] if {$hostname == ""} { |
︙ | |||
123 124 125 126 127 128 129 | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | + + - + - - + + + + + - + + + + + + + + + + + - + | ln -fs "${packagedir}"/lib/* /lib/ fi done return 0 } operation="$1" shift |