Overview
Comment: | Updated to rethrow error from local-ify file |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | tcl-ops |
Files: | files | file ages | folders |
SHA1: |
7c53fff896933b13fc35b93f2e128c28 |
User & Date: | rkeene on 2014-11-09 02:14:56 |
Other Links: | branch diff | manifest | tags |
Context
2014-11-09
| ||
07:52 | Began adding support for other types of files as well as added creat() and mknod() support check-in: 80bcdf4cb8 user: rkeene tags: tcl-ops | |
02:14 | Updated to rethrow error from local-ify file check-in: 7c53fff896 user: rkeene tags: tcl-ops | |
02:13 | Updated to create directory to store local file check-in: f2d710b7dc user: rkeene tags: tcl-ops | |
Changes
Modified appfsd.tcl from [7f053ee293] to [ce277262eb].
︙ | ︙ | |||
605 606 607 608 609 610 611 | } set localcachefile [download $pathinfo(hostname) $pkgpathinfo(file_sha1)] if {$mode == "write"} { set tmplocalpath "${localpath}.[expr rand()][clock clicks]" | > | > > > > > > | 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 | } set localcachefile [download $pathinfo(hostname) $pkgpathinfo(file_sha1)] if {$mode == "write"} { set tmplocalpath "${localpath}.[expr rand()][clock clicks]" set failed 0 if {[catch { file mkdir [file dirname $localpath] file copy -force -- $localcachefile $tmplocalpath if {$pkgpathinfo(perms) == "x"} { file attributes $tmplocalpath -permissions +x } file rename -force -- $tmplocalpath $localpath } err]} { set failed 1 } catch { file delete -force -- $tmplocalpath } if {$failed} { return -code error $err } return $localpath } return $localcachefile } } |