Changeset 1221 in ProjectBuilder


Ignore:
Timestamp:
Feb 24, 2011, 11:29:33 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fixes again for ntp command which was wrong
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1220 r1221  
    23972397my ($ntp) = pb_conf_get_if($vtype."ntp");
    23982398my $vntp = $ntp->{$ENV{'PBPROJ'}} if (defined $ntp);
    2399 my $ntpline;
     2399my $ntpline = undef;
    24002400
    24012401if (defined $vntp) {
    2402     my ($ntpcmd) = pb_distro_get_param($pbos,pb_conf_get($vtype."ntpcmd"));
    2403     my $vntpcmd;
    2404     if (defined $ntpcmd->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"}) {
    2405         $vntpcmd = $ntpcmd->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"};
    2406     } elsif (defined $ntpcmd->{$ENV{'PBPROJ'}}) {
    2407         $vntpcmd = $ntpcmd->{$ENV{'PBPROJ'}};
    2408     } else {
    2409         $vntpcmd = "/bin/true";
    2410     }
     2402    # ntp command depends on pbos
     2403    my $vntpcmd = pb_distro_get_param($pbos,pb_conf_get($vtype."ntpcmd"));
    24112404    $ntpline = "sudo $vntpcmd $vntp";
    2412 } else {
    2413     $ntpline = undef;
    24142405}
    24152406# Force new date to be in the future compared to the date
Note: See TracChangeset for help on using the changeset viewer.