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

apt: add support for ppa. #202

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

weakish
Copy link
Contributor

@weakish weakish commented May 3, 2016

Add an ppa option to install from Ubuntu PPA.

Add an ppa option to install from Ubuntu PPA.
ppa_user, ppa_name = ppa.split('/')
sources_glob = ['/etc/apt/sources.list', '/etc/apt/sources.list.d/*.list']
ppa_pattern = /^deb http:\/\/ppa.launchpad.net\/#{ppa}/
Dir.glob(sources_glob).any? do |f|
Copy link
Contributor

Choose a reason for hiding this comment

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

How can this possibly work? Ruby is running locally, not remotely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed fixes.

Previously ppa repository existence is mistakenly checked via
Ruby code, which cannot be run remotely.
This commit rewrites the existence check in shell commands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants