Commit 2fb81a33 authored by unknown's avatar unknown

- fixed brain fart in Bootrap - it never actually caught failures

   when pulling BK trees before.


Build-tools/Bootstrap:
   - thinko fix: we need to run the "bk pull" command on its own, if
     we want to get its return value...
parent 8d887160
...@@ -123,14 +123,16 @@ if (($opt_directory ne $PWD) && (!-d $opt_directory && !$opt_dry_run)) ...@@ -123,14 +123,16 @@ if (($opt_directory ne $PWD) && (!-d $opt_directory && !$opt_dry_run))
if ($opt_pull) if ($opt_pull)
{ {
&logger("Updating BK tree $REPO to latest ChangeSet first"); &logger("Updating BK tree $REPO to latest ChangeSet first");
$command= "cd $REPO; bk pull; cd .."; chdir ($REPO) or &abort("Could not chdir to $REPO!");
&run_command($command, "Could not update $REPO!"); &run_command("bk pull", "Could not update $REPO!");
chdir ($PWD) or &abort("Could not chdir to $PWD!");
unless ($opt_skip_manual) unless ($opt_skip_manual)
{ {
&logger("Updating manual tree in $opt_docdir"); &logger("Updating manual tree in $opt_docdir");
$command= "cd $opt_docdir; bk pull; cd .."; chdir ($opt_docdir) or &abort("Could not chdir to $opt_docdir!");
&run_command($command, "Could not update $opt_docdir!"); &run_command("bk pull", "Could not update $opt_docdir!");
chdir ($PWD) or &abort("Could not chdir to $PWD!");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment