diff --git a/CONTROL/control b/CONTROL/control
index 0f4cf3e3..09ddd0b6 100644
--- a/CONTROL/control
+++ b/CONTROL/control
@@ -1,10 +1,10 @@
Package: webif
Priority: optional
Section: web
-Version: 1.2.8-2
+Version: 1.2.8-3
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
-Depends: webif-channelicons(>=1.1.18),lighttpd(>=1.4.39-1),jim(>=0.76),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.1),hmt(>=2.0.9),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2-1),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7)
+Depends: webif-channelicons(>=1.1.20),lighttpd(>=1.4.39-1),jim(>=0.76),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.1),hmt(>=2.0.9),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2-1),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7)
Suggests:
Description: An evolving web interface for the Humax.
Tags: http://hummy.tv/forum/threads/6484/
diff --git a/webif/html/diag/assets.jim b/webif/html/diag/assets.jim
index 91d3e4fd..5402ba95 100755
--- a/webif/html/diag/assets.jim
+++ b/webif/html/diag/assets.jim
@@ -77,7 +77,7 @@ puts {
Maintenance Mode allows you to start up your Humax
- into a mode where the neither the standard Humax software
+ in a mode where neither the standard Humax software
nor the custom firmware packages are running.
This mode is primarily intended to be used for checking
diff --git a/webif/html/go b/webif/html/go
index 7be8bf2d..870ab693 100755
--- a/webif/html/go
+++ b/webif/html/go
@@ -3,7 +3,7 @@
source /mod/webif/lib/setup
require system.class settings.class plugin
-set module [file tail $env(PATH_INFO)]
+set module [file tail [string trimright $env(PATH_INFO) /]]
set lastmodule ""
if {[dict exists $env HTTP_COOKIE]} {
regexp {webif_lastmod=([a-z_]+)} $env(HTTP_COOKIE) x lastmodule
diff --git a/webif/html/pkg/pkg.jim b/webif/html/pkg/pkg.jim
index 0eb3bdb9..b176a949 100755
--- a/webif/html/pkg/pkg.jim
+++ b/webif/html/pkg/pkg.jim
@@ -8,8 +8,6 @@ if {[[settings] pkgdev]} { set filter 0 } else { set filter 1 }
httpheader
-set pkgdata [pkg getall]
-
proc pkgrow {name pkg} {
altrow "pkg=\"$name\""
puts "
$name"
@@ -80,13 +78,12 @@ proc pkgrow {name pkg} {
puts ""
}
+set pkgdata [pkg getall]
pkg loadmeta
-
set type [cgi_get type "avail"]
set pkgs {}
-foreach pkg [lsort -nocase [dict keys $pkgdata]] {
- set data $pkgdata($pkg)
+foreach {pkg data} $pkgdata {
switch $type {
avail {
if {$data(installed) eq "0"} {
@@ -107,8 +104,6 @@ foreach pkg [lsort -nocase [dict keys $pkgdata]] {
}
}
-#set pkgs [pkg $type]
-
if {[llength $pkgs] > 0} {
puts "Package | "
@@ -128,7 +123,7 @@ if {[llength $pkgs] > 0} {
"
- foreach pkg $pkgs {
+ foreach pkg [lsort $pkgs] {
if {$type ne "upgr" && $filter && \
![dict exists $::pkgmeta $pkg]} continue
if {![dict exists $pkgdata $pkg]} continue
|