Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Add support for URLs as package_name in providers/pip current_installed_version comparison - #127

Closed
wico wants to merge 2 commits into
poise:masterfrom
wico:master
Closed

Add support for URLs as package_name in providers/pip current_installed_version comparison#127
wico wants to merge 2 commits into
poise:masterfrom
wico:master

Conversation

@wico

@wico wico commented Nov 4, 2014

Copy link
Copy Markdown

In case we use an URL (as package_name) for pip we have to filter out
the real package_name from such an URL (means: We remove all unneeded
parts).

In the next step we can use the extracted package_name as usual too look up and compare with current installed packages.

Without such a change, the current_installed_version always returns NIL.

Signed-off-by: Martin Wilhelm martin@system4.org

out the real package_name from such a URL (means: We remove all unneeded
parts).

In the next step we can use the extracted package_name as usual.

Signed-off-by: Martin Wilhelm <martin@system4.org>
@wico wico changed the title In case we use an URL (as package_name) for pip we have to filter Add support for URLs as package_name in providers/pip current_installed_version comparison Nov 4, 2014
@wico

wico commented Nov 5, 2014

Copy link
Copy Markdown
Author

Travis does is somehow restricted, that affects not only my PR:

/home/travis/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/open-uri.rb:223:in `open_loop': redirection forbidden: http://cookbooks.opscode.com/api/v1/cookbooks/minitest-handler/versions/1.1.2/download -> https://s3.amazonaws.com/community-files.opscode.com/cookbook_versions/tarballs/4922/original/minitest-handler.tgz?1383093187 (RuntimeError)

@coderanger

Copy link
Copy Markdown
Member

No, I've long held that I don't want to re-implement pip features in this code. Passing URLs isn't doable idempotently and so is not supported.

@coderanger coderanger closed this Nov 5, 2014
@wico

wico commented Nov 5, 2014

Copy link
Copy Markdown
Author

Some lines later it seems to be supported (see line 136 and ff.). However - I'll continue without this cookbook and build a RPM instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants