Skip to content

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