Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect update: true in apt addon #1727

Merged
merged 2 commits into from Sep 5, 2019
Merged

Respect update: true in apt addon #1727

merged 2 commits into from Sep 5, 2019

Conversation

BanzaiMan
Copy link
Contributor

Previously, it ran only when we install packages

Copy link
Contributor

@native-api native-api left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Why not just apt update in before_prepare whenever the directive is specified? KISS.
  2. sources: should probably imply update:true since it would have no effect otherwise as per https://travis-ci.community/t/apt-update-doesnt-work-unless-you-also-add-some-package-s/3816/7?u=native-api

unless config[:update]
# this is run elsewhere when sources are added
sh.cmd 'travis_apt_get_update', retry: true, echo: true, timing: true
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will make update: work backwards if packages: is specified and sources: is not.

@BanzaiMan BanzaiMan temporarily deployed to travis-build-staging September 5, 2019 19:18 Inactive
@BanzaiMan
Copy link
Contributor Author

@BanzaiMan BanzaiMan merged commit df6d21d into master Sep 5, 2019
@BanzaiMan BanzaiMan deleted the ha-apt-update branch September 5, 2019 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants