Index: server/teapot_index ================================================================== --- server/teapot_index +++ server/teapot_index @@ -20,11 +20,11 @@ # Index all packages proc teapot_index {srcdir} { array set pkginfo [list] - foreach pkgdir [glob -directory $srcdir -type d */out/*] { + foreach pkgdir [glob -directory $srcdir -type d */*/*] { unset -nocomplain currpkginfo set currpkginfo(pkgdir) $pkgdir set teapot [file join $pkgdir teapot.txt] @@ -85,11 +85,11 @@ } "META" { set var [string tolower [lindex $line 1]] set val [lrange $line 2 end] - set currpkginfo($var) $val + lappend currpkginfo($var) $val } } } set pkginfo([list $currpkginfo(name) $currpkginfo(vers) $currpkginfo(platform)]) [array get currpkginfo] @@ -215,10 +215,11 @@ lappend pkglist $addent } set pkglist [lsort -dictionary $pkglist] + file mkdir [file dirname $indexfile] set fd [open $indexfile w] puts $fd "" puts $fd "
" puts $fd "