Changeset 982 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Feb 19, 2010, 5:30:20 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • Fix variable substitution which was too aggressive in pb_distro_get_param
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r980 r982  
    419419die pb_syntax(-1,1) if (not defined $action);
    420420
     421my ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir);
     422my $pbinit = undef;
     423$pbinit = 1 if ($action =~ /^newproj$/);
     424
     425# Handles project name if any
     426# And get global params
     427($filteredfiles, $supfiles, $defpkgdir, $extpkgdir) = pb_env_init($opts{'p'},$pbinit,$action);
     428
    421429#
    422430# Check for command requirements
    423431#
    424432my ($req,$opt) = pb_conf_get_if("oscmd","oscmdopt");
    425 pb_check_requirements($req->{$appname},$opt->{$appname});
    426 
    427 my ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir);
    428 my $pbinit = undef;
    429 $pbinit = 1 if ($action =~ /^newproj$/);
    430 
    431 # Handles project name if any
    432 # And get global params
    433 ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir) = pb_env_init($opts{'p'},$pbinit,$action);
     433my ($req2,$opt2) = (undef,undef);
     434$req2 = $req->{$appname} if (defined $req);
     435$opt2 = $opt->{$appname} if (defined $opt);
     436pb_check_requirements($req2,$opt2);
    434437
    435438pb_log(0,"Project: $ENV{'PBPROJ'}\n");
Note: See TracChangeset for help on using the changeset viewer.