Check-in [d6262bea99]
Overview
Comment:Updated to fetch/update host index before fetching manifest
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d6262bea99c643e8237d5122b0baca84cbf708cc
User & Date: rkeene on 2014-11-12 15:23:07
Other Links: manifest | tags
Context
2014-11-14
04:05
Tweaked hashing algorithm, added destructor for threads so that as threads terminate they are cleaned up check-in: 770584ac09 user: rkeene tags: trunk
2014-11-12
15:23
Updated to fetch/update host index before fetching manifest check-in: d6262bea99 user: rkeene tags: trunk
08:36
Corrected issue where package name was not considered when looking up package check-in: eb52173aaa user: rkeene tags: trunk
Changes

Modified appfsd.tcl from [5efeea4271] to [f5542ce16c].

507
508
509
510
511
512
513

514
515
516
517
518
519
520
					lappend retval "latest"
				}

				return $retval
			}
			"files" {
				catch {

					::appfs::getpkgmanifest $pathinfo(hostname) $pathinfo(package_sha1)
				}

				set retval [::appfs::db eval {SELECT DISTINCT file_name FROM files WHERE package_sha1 = $pathinfo(package_sha1) AND file_directory = $pathinfo(file);}]

				if {[info exists pathinfo(package)] && [info exists pathinfo(hostname)] && [info exists pathinfo(file)]} {
					_as_user {







>







507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
					lappend retval "latest"
				}

				return $retval
			}
			"files" {
				catch {
					::appfs::getindex $pathinfo(hostname)
					::appfs::getpkgmanifest $pathinfo(hostname) $pathinfo(package_sha1)
				}

				set retval [::appfs::db eval {SELECT DISTINCT file_name FROM files WHERE package_sha1 = $pathinfo(package_sha1) AND file_directory = $pathinfo(file);}]

				if {[info exists pathinfo(package)] && [info exists pathinfo(hostname)] && [info exists pathinfo(file)]} {
					_as_user {