From e3e1fb618a82f5ea8394475483b1eb738910085f Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 16 May 2016 16:01:18 +0000 Subject: [PATCH] fix backup file sorting git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2942 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 2 +- webif/html/sched/backup/files.jim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index 9c0eea21..0c3b7851 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.3.0-4 +Version: 1.3.0-5 Architecture: mipsel Maintainer: af123@hpkg.tv Depends: tcpfix,webif-channelicons(>=1.1.23),lighttpd(>=1.4.39-1),jim(>=0.76-2),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.3),hmt(>=2.0.9),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.8),webif-charts(>=1.2-1),stripts(>=1.2.5-3),tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7) diff --git a/webif/html/sched/backup/files.jim b/webif/html/sched/backup/files.jim index d5674953..621cefb1 100755 --- a/webif/html/sched/backup/files.jim +++ b/webif/html/sched/backup/files.jim @@ -26,7 +26,7 @@ proc s_time {a b} { if {$at < $bt} { return -1 } if {$at > $bt} { return 1 } - return 0 + return [string compare $a $b] } set backups [lsort -command s_time [glob -nocomplain "$dir/*.rbk"]]