Changeset 1221 in ProjectBuilder
- Timestamp:
- Feb 24, 2011, 11:29:33 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1220 r1221 2397 2397 my ($ntp) = pb_conf_get_if($vtype."ntp"); 2398 2398 my $vntp = $ntp->{$ENV{'PBPROJ'}} if (defined $ntp); 2399 my $ntpline ;2399 my $ntpline = undef; 2400 2400 2401 2401 if (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")); 2411 2404 $ntpline = "sudo $vntpcmd $vntp"; 2412 } else {2413 $ntpline = undef;2414 2405 } 2415 2406 # Force new date to be in the future compared to the date
Note:
See TracChangeset
for help on using the changeset viewer.