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

When localshop not found a version great than the last stored in database start an update action. #165

Open
wiliamsouza opened this issue Jun 23, 2015 · 8 comments
Milestone

Comments

@wiliamsouza
Copy link

When localshop not found a version great than the last stored in database start an update action.
For example I have py==1.4.28 in localshop db and the last version on pypi is py==1.4.29.
To force the update I need interact with Django admin and remove py db entry.
What is the best solution to this?

@canassa
Copy link
Collaborator

canassa commented Jun 24, 2015

I already had that problem before, this happens when you are trying to get a package version that was not fetched from the Celery beat task that runs every night.

There is a "update" button on the package page which should force an update from PyPI, you can try using that to force an update from PyPI.

@wiliamsouza
Copy link
Author

What about change a little bit how localshop works with not found version to try fetch from pypi before return an error? Is it worth?

@canassa
Copy link
Collaborator

canassa commented Jun 24, 2015

I think that if the package is not local, we could return a redirect to the PyPI server and start an background task to fetch the new package. What do you think about this @mvantellingen ?

@mvantellingen
Copy link
Owner

Yeah I agree, If a specific version is asked which is not known yet then we need to do an update.

@mvantellingen mvantellingen added this to the 0.10 milestone Jun 24, 2015
@canassa
Copy link
Collaborator

canassa commented Jun 25, 2015

@wiliamsouza

What about sending us a pull request? 😃

@edersonbadeca
Copy link

👍

@wiliamsouza
Copy link
Author

@canassa Challenge accepted :D

@bsdlp
Copy link
Contributor

bsdlp commented Apr 4, 2016

@canassa wrt #165 (comment) is clicking the refresh button confirmed to sync versions available from upstream? i.e. gevent 1.1.1 released today after the nightly job but clicking refresh does not make 1.1.1 available to localshop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants