updates
This commit is contained in:
parent
8493c6d97c
commit
92ae6f1e0d
|
@ -1,8 +1,8 @@
|
|||
Package: sweeper
|
||||
Priority: optional
|
||||
Section: misc
|
||||
Version: 1.0.8-1
|
||||
Version: 1.0.8-3
|
||||
Architecture: mipsel
|
||||
Maintainer: af123@hummypkg.org.uk
|
||||
Depends: webif(>=1.0.6)
|
||||
Depends: webif(>=1.0.6-7)
|
||||
Description: Automatically manage single recording files.
|
||||
|
|
|
@ -179,6 +179,7 @@ proc ::sweeper::find {root target orig} {
|
|||
}
|
||||
|
||||
proc ::sweeper:folder_merge {src dst} {
|
||||
if {$src eq $dst} return
|
||||
log "Moving recordings from $src to $dst" 0
|
||||
foreach e [readdir -nocomplain $src] {
|
||||
if {![string match {*.ts} $e]} continue
|
||||
|
@ -205,7 +206,10 @@ proc ::sweeper:folder_merge {src dst} {
|
|||
}
|
||||
}
|
||||
if {![system rmdir_if_empty $src]} {
|
||||
log "Failed to remove directory: $msg" 0
|
||||
log "Failed to remove directory" 0
|
||||
foreach l [system rmdir_if_empty $src 1] {
|
||||
log "Blocking file: $l" 0
|
||||
}
|
||||
}
|
||||
if {$dst ni $::sweeper::recalc} {
|
||||
lappend ::sweeper::recalc $dst
|
||||
|
|
Loading…
Reference in New Issue