[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

patch for dh-make-perl



Hi all,

this patch fix the RE that find the package name in a Module::Install
syntax (adding a \s* after 'name'). I exploded the RE to make it easier
to read.

i also added a die if $name isn't filled.

regards,
mc
412c412,420
< 	} elsif ($file =~ /name\(([\'\"]?)(\S+)\1\);/s) {
---
> 	} elsif ($file =~ /
> 		name
> 		\s*
> 		\(
> 		    ([\'\"]?)   # start quote
> 			(\S+)   # package name
> 		    \1          # end quote
> 		\)
> 		;/xs) {
414a423,424
> 	} else {
> 	    die "$makefile doesn't seem to contain the name of the package";

Reply to: