Ignore:
Timestamp:
Nov 20, 2009, 2:00:28 AM (14 years ago)
Author:
Bruno Cornec
Message:

r3617@localhost: bruno | 2009-11-15 13:33:01 +0100
Improve case where the build file description if undef (seen in cms2vm)

File:
1 edited

Legend:

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

    r891 r899  
    242242
    243243# Get dependecies in the build file if not forced
    244 $deps = pb_distro_getdeps("$f", $dtype) if (not defined $deps);
     244$deps = pb_distro_getdeps($f, $dtype) if (not defined $deps);
    245245pb_log(2,"deps: $deps\n");
    246246return if ((not defined $deps) || ($deps =~ /^\s*$/));
     
    267267my $sep = $/;
    268268
    269 pb_log(3,"entering pb_distro_getdeps: $dtype - $f\n");
    270269# Protection
    271270return("") if (not defined $dtype);
     271return("") if (not defined $f);
     272
     273pb_log(3,"entering pb_distro_getdeps: $dtype - $f\n");
    272274if ($dtype eq  "rpm") {
    273275    # In RPM this could include files, but we do not handle them atm.
     
    283285}
    284286pb_log(2,"regexp: $regexp\n");
    285 
    286 
    287 # Protection
    288 return("") if (not defined $f);
    289287
    290288# Preserve separator before using the one we need
Note: See TracChangeset for help on using the changeset viewer.