"
if {[dict exists $::pkgmeta $name]} {
puts "$::pkgmeta($name)"
} else {
puts "[$pkg get descr]"
}
if {$::type eq "upgr"} {
$pkg loadraw
set url [$pkg get url]
set changes [$pkg get changes]
if {$changes ne ""} {
puts " - $changes"
}
if {$url ne ""} {
puts "
$url
"
}
}
puts "
"
if {![$pkg is installed]} {
set type Install
} elseif {$::type eq "upgr" && [$pkg is upgradable]} {
set type Upgrade
} else {
set type Remove
}
puts "
"
puts ""
}
pkg loadmeta
set type [cgi_get type "avail"]
set pkgs [pkg $type]
if {[llength $pkgs] > 0} {
puts "
"
if {$type ne "upgr" && $filter} {
puts "This is a filtered package list. To show all packages, enable the Show development and advanced packages in the settings screen."
}
} else {
puts "No packages "
switch $type {
inst { puts "are installed." }
upgr { puts "are available for upgrade; try updating the package list from the Internet using the button above." }
avail { puts "are available for installation." }
}
puts ""
}