Diff

Differences From Artifact [8fdf97f435]:

To Artifact [171439581e]:


   161    161   			source $config_file
   162    162   		}
   163    163   
   164    164   		if {![info exists ::appfs::db]} {
   165    165   			file mkdir $::appfs::cachedir
   166    166   
   167    167   			sqlite3 ::appfs::db [file join $::appfs::cachedir cache.db]
          168  +
          169  +			::appfs::db timeout 30000
   168    170   		}
   169    171   
   170    172   		# Create tables
   171    173   		db eval {CREATE TABLE IF NOT EXISTS sites(hostname PRIMARY KEY, lastUpdate, ttl);}
   172    174   		db eval {CREATE TABLE IF NOT EXISTS packages(hostname, sha1, package, version, os, cpuArch, isLatest, haveManifest);}
   173    175   		db eval {CREATE TABLE IF NOT EXISTS files(package_sha1, type, time, source, size, perms, file_sha1, file_name, file_directory);}
   174    176