Overview
Comment: | Fixed bug in resetting latest value |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
355ee88ec8170892bc0a1ae31e45a9fb |
User & Date: | rkeene on 2015-05-26 15:44:57 |
Other Links: | manifest | tags |
Context
2015-05-26
| ||
15:45 | AppFS 1.8 check-in: 1a0a82c686 user: rkeene tags: trunk, 1.8 | |
15:44 | Fixed bug in resetting latest value check-in: 355ee88ec8 user: rkeene tags: trunk | |
2015-05-12
| ||
13:30 | Updated to be more subtle with differing inodes, only differ them if the files are different check-in: 3021e03379 user: rkeene tags: trunk | |
Changes
Modified appfsd.tcl from [9d766a9055] to [a394650d8e].
︙ | ︙ | |||
381 382 383 384 385 386 387 | # Do not do any additional work if we already have this package set existing_packages [db eval {SELECT package FROM packages WHERE hostname = $hostname AND sha1 = $pkgInfo(hash);}] if {[lsearch -exact $existing_packages $pkgInfo(package)] != -1} { continue } if {$pkgInfo(isLatest)} { | | < | 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 | # Do not do any additional work if we already have this package set existing_packages [db eval {SELECT package FROM packages WHERE hostname = $hostname AND sha1 = $pkgInfo(hash);}] if {[lsearch -exact $existing_packages $pkgInfo(package)] != -1} { continue } if {$pkgInfo(isLatest)} { db eval {UPDATE packages SET isLatest = 0 WHERE hostname = $hostname AND package = $pkgInfo(package) AND os = $pkgInfo(os) AND cpuArch = $pkgInfo(cpuArch);} } db eval {INSERT INTO packages (hostname, sha1, package, version, os, cpuArch, isLatest, haveManifest) VALUES ($hostname, $pkgInfo(hash), $pkgInfo(package), $pkgInfo(version), $pkgInfo(os), $pkgInfo(cpuArch), $pkgInfo(isLatest), 0);} } # Look for packages that have been deleted set found_packages [db eval {SELECT sha1 FROM packages WHERE hostname = $hostname;}] foreach package $found_packages { set found_packages_arr($package) 1 } |
︙ | ︙ |