fix dedup

git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2319 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2015-02-07 10:58:11 +00:00
parent 4e8d9f5b88
commit b9e6ad6881
5 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
Package: webif Package: webif
Priority: optional Priority: optional
Section: web Section: web
Version: 1.2.1-2 Version: 1.2.1-4
Architecture: mipsel Architecture: mipsel
Maintainer: af123@hummypkg.org.uk Maintainer: af123@hummypkg.org.uk
Depends: webif-channelicons(>=1.1.14),lighttpd(>=1.4.35-2),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.0),hmt(>=2.0.3),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,mongoose,recmon(>=2.0.2) Depends: webif-channelicons(>=1.1.14),lighttpd(>=1.4.35-2),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.0),hmt(>=2.0.3),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,mongoose,recmon(>=2.0.2)

View File

@ -31,7 +31,7 @@ foreach dir $dirs {
foreach file [lsort -command dedupsort [readdir $dir]] { foreach file [lsort -command dedupsort [readdir $dir]] {
if {[file extension $file] ne ".nts"} { continue } if {[file extension $file] ne ".nts"} { continue }
set file "$dir/[file rootname $file].hmt" set file "[file rootname $file].hmt"
set base [file tail [file rootname $file]] set base [file tail [file rootname $file]]
lassign [dedupprocess $file] stat ts syn fn lassign [dedupprocess $file] stat ts syn fn

View File

@ -32,7 +32,7 @@ foreach file [lsort -command dedupsort [readdir $dir]] {
set file "$dir/$file" set file "$dir/$file"
if {[file extension $file] ne ".nts"} { continue } if {[file extension $file] ne ".nts"} { continue }
set file "$dir/[file rootname $file].hmt" set file "[file rootname $file].hmt"
if {$reset} { if {$reset} {
set ts [ts fetch $file 1] set ts [ts fetch $file 1]

View File

@ -3,7 +3,8 @@
require system.class require system.class
proc dedupsort {a b} { proc dedupsort {a b} {
return [expr [file mtime $a] > [file mtime $b]] global dir
return [expr [file mtime "$dir/$a"] > [file mtime "$dir/$b"]]
} }
proc dedupprocess {file} {{seen {}}} { proc dedupprocess {file} {{seen {}}} {

View File

@ -11,7 +11,7 @@
} }
.tablesorter-webif th, .tablesorter-webif th,
.tablesorter-webif td { .tablesorter-webif td {
font: 12px/18px Arial, Sans-serif; /*font: 12px/18px Arial, Sans-serif;*/
border: #cdcdcd 1px solid; border: #cdcdcd 1px solid;
border-width: 0 1px 1px 0; border-width: 0 1px 1px 0;
} }