Skip to content

Commit

Permalink
octave_ci.m: Show output of apt in log
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Feb 9, 2024
1 parent 42951d9 commit bc44010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/ci/octave_ci.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function octave_ci (package_name, pkg_index_file)

if (! isempty (ubuntu2204))
step_group_start ("Install Ubuntu 22.04 dependencies");
[~,~] = system ("sudo apt-get update");
[~,~] = system (["sudo apt-get install --yes ", strjoin(ubuntu2204)]);
system ("sudo apt-get update");
system (["sudo apt-get install --yes ", strjoin(ubuntu2204)]);
step_group_end ("done.");
endif

Expand Down Expand Up @@ -214,7 +214,7 @@ function pkg_install_sha256_check (pkg_version, test_dir)
endfor
endif

if (isfield (p, "ubuntu2204"))
if (isfield (p, "ubuntu2204") && ! isempty (p.ubuntu2204))
new_ubuntu2204 = {p.ubuntu2204.name};
for i = 1:length (new_ubuntu2204)
## Ubuntu/Debian package name must consist only of lower case letters
Expand Down

0 comments on commit bc44010

Please sign in to comment.