Skip to content

Commit

Permalink
next: no-op when pace is set to once
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-levan committed Jul 28, 2023
1 parent 1384f9d commit 3bd881c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/vere/king.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,15 @@ u3_king_next(c3_c* pac_c, c3_c** out_c)
ret_i = asprintf(&url_c, "%s/%s/%s/next", ver_hos_c, pac_c, URBIT_VERSION);
u3_assert( ret_i > 0 );

// no-op if pace is set to once
//
if ( 0 == strcmp(pac_c, "once") ) {
c3_free(url_c);
fprintf(stderr, "vere: pace is set to \"once\", skipping upgrade\r\n");
fprintf(stderr, "vere: set pace to \"live\" and try again\r\n");
return -1;
}

// skip printfs on failed requests (/next is usually not present)
//
if ( _king_curl_bytes(url_c, &len_w, &hun_y, 0) ) {
Expand Down

0 comments on commit 3bd881c

Please sign in to comment.