Skip Menu |

This queue is for tickets about the Template-Toolkit CPAN distribution.

Report information
The Basics
Id: 100050
Status: resolved
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: markmacnair [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.26
Fixed in: (no value)



Subject: ttree - accept directive ignores copy directive when used in config file
Running ttree -a -f on a config file with the following directives: src = /var/www/htdocs/Website/input/ # input dest = /var/www/htdocs/Website/output/ #output copy = (gif|png|jpg|jpeg|pdf|js)$ accept = \.content$ With 2 .content files in $src, along with several images and javascript in $src/root/static/ causes only the 2 .content files to be processed along with the directory structure, but not the copy files. Removing the accept directive works as expected, copying the files and directory structure. This looks like it's caused by the if block in process_tree on line 299 of ttree 2.90. next FILE is called if the accept regex array is true, so unless($copy_file) on line 386 inside process_file is never reached.
From: markmacnair [...] gmail.com
Similar or identical issue to https://rt.cpan.org/Ticket/Display.html?id=49567 On Wed Nov 05 06:09:42 2014, markmacnair@gmail.com wrote: Show quoted text
> Running ttree -a -f on a config file with the following directives: > > src = /var/www/htdocs/Website/input/ # input > dest = /var/www/htdocs/Website/output/ #output > > copy = (gif|png|jpg|jpeg|pdf|js)$ > > accept = \.content$ > > With 2 .content files in $src, along with several images and > javascript in $src/root/static/ causes only the 2 .content files to be > processed along with the directory structure, but not the copy files. > Removing the accept directive works as expected, copying the files and > directory structure. > > This looks like it's caused by the if block in process_tree on line > 299 of ttree 2.90. > next FILE is called if the accept regex array is true, so > unless($copy_file) on line 386 inside process_file is never reached.
Ticket migrated to github as https://github.com/abw/Template2/issues/127