Ignore:
Timestamp:
Sep 26, 2012, 2:25:07 PM (7 years ago)
Author:
bruno
Message:
  • Fix a nasty bug when using an empty value on the right side of th = sign in a conf file, he parameter wasn't created in the cache conf. The rehexp has been adapted to support it, as it was designed. Allows to create empty values for some use case (osmindep in our case for rh6.2)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Conf.pm

    r1594 r1644  
    118118open(CONF,$cf) || confess "Unable to open $cf";
    119119while(<CONF>) {
    120     if (/^\s*([A-z0-9-_.]+)\s+([[A-z0-9-_.]+)\s*=\s*(.+)$/) {
     120    if (/^\s*([A-z0-9-_.]+)\s+([[A-z0-9-_.]+)\s*=\s*(.*)$/) {
    121121        pb_log(3,"DEBUG: 1:$1 2:$2 3:$3\n");
    122122        $lh->{$1}->{$2}=$3;
Note: See TracChangeset for help on using the changeset viewer.