This commit is contained in:
hummypkg 2015-06-25 22:19:54 +00:00
parent b8833af068
commit 2460cda298
3 changed files with 4 additions and 21 deletions

View File

@ -1,7 +1,7 @@
Package: sweeper
Priority: optional
Section: misc
Version: 2.0.8-5
Version: 2.0.8-6
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif(>=1.2.3-2)

View File

@ -266,7 +266,7 @@ proc ::sweeper::find {root target orig} {
foreach e [readdir -nocomplain $root] {
regsub -all -- {//} "$root/$e" "/" entry
if {![file isdirectory $entry]} continue
if {[string match {\[*} $e]} continue
if {[string match {\[*} [string trimleft $e]]} continue
if {$e eq $dustbin} continue
if {$entry eq $orig} continue
@ -831,7 +831,7 @@ proc ::sweeper::apply {dir cf} {
foreach e [readdir -nocomplain $dir] {
set entry "$dir/$e"
if {![file isdirectory $entry]} continue
if {[string match {\[*} $e]} continue
if {[string match {\[*} [string trimleft $e]]} continue
if {$e eq $dustbin} continue
log "" 2

View File

@ -313,24 +313,7 @@ var macros = {
{
"raw": "title New:* action {settitle {%orig%regsub,New:\\s*,,}}",
"name": "Remove New: prefix.",
"type": "file",
"enabled": "1",
"criteria": [
{
"negate": 0,
"cmd": "title",
"arg": "New:*"
}
],
"action": {
"cmd": "settitle",
"arg": "%orig%regsub,New:\\s*,,"
}
},
{
"raw": "title New:* action {settitle {%orig%regsub,New:\\s*,,}}",
"name": "Unnamed rule",
"type": "folder",
"type": "global",
"enabled": "1",
"criteria": [
{