Skip to content

Commit

Permalink
Always update apt before installing rosdeps (#611)
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
  • Loading branch information
emersonknapp committed Apr 6, 2021
1 parent 2bd701c commit cbf3cb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11151,6 +11151,10 @@ done`;
yield execBashCommand("vcs import --force --recursive src/ < package.repo", undefined, options);
// Print HEAD commits of all repos
yield execBashCommand("vcs log -l1 src/", undefined, options);
if (isLinux) {
// Always update APT before installing packages on Ubuntu
yield execBashCommand("sudo apt-get update");
}
yield installRosdeps(packageNames, rosWorkspaceDir, targetRos1Distro, targetRos2Distro);
if (colconDefaults.includes(`"mixin"`) && colconMixinRepo !== "") {
yield execBashCommand(`colcon mixin add default '${colconMixinRepo}'`, undefined, options);
Expand Down
4 changes: 4 additions & 0 deletions src/action-ros-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ done`;
// Print HEAD commits of all repos
await execBashCommand("vcs log -l1 src/", undefined, options);

if (isLinux) {
// Always update APT before installing packages on Ubuntu
await execBashCommand("sudo apt-get update");
}
await installRosdeps(
packageNames,
rosWorkspaceDir,
Expand Down

0 comments on commit cbf3cb9

Please sign in to comment.