Ignore:
Timestamp:
Jun 17, 2015, 12:56:20 AM (9 years ago)
Author:
Bruno Cornec
Message:

Adds debug info to Distribution.pm to catch a dependency analysis issue on Ubuntu

File:
1 edited

Legend:

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

    r1969 r1972  
    405405    pb_log(2,"found deps: $_\n");
    406406    s/$regexp/$1/i;
     407    pb_log(4,"found deps 1: $_\n");
    407408    # Remove conditions in the middle and at the end for deb
    408409    s/\(\s*[><=]+.*\)[^,]*,/,/g;
     410    pb_log(4,"found deps 2: $_\n");
    409411    s/\(\s*[><=]+.*$//g;
     412    pb_log(4,"found deps 3: $_\n");
    410413    # Same for rpm
    411414    s/[><=]+[^,]*,/,/g;
     415    pb_log(4,"found deps 4: $_\n");
    412416    s/[><=]+.*$//g;
     417    pb_log(4,"found deps 5: $_\n");
    413418    # Improve string format (remove , and spaces at start, end and in double
    414419    s/,/ /g;
     420    pb_log(4,"found deps 6: $_\n");
    415421    s/^\s*//;
     422    pb_log(4,"found deps 7: $_\n");
     423    # $ here removes the \n
    416424    s/\s*$//;
     425    pb_log(4,"found deps 8: $_\n");
    417426    s/\s+/ /g;
     427    pb_log(4,"found deps 9: $_\n");
    418428    $deps .= " ".$_;
     429    pb_log(4,"found deps end: $deps\n");
    419430
    420431    # Support multi-lines deps for .deb (fwup)
Note: See TracChangeset for help on using the changeset viewer.