Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Fix #48: bug in mirror mode on private packages
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed May 26, 2015
1 parent 9a781bf commit 545c433
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pypicloud/views/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ def package_versions(context, request):
def get_fallback_packages(request, package_name):
""" Get all package versions for a package from the fallback_url """
dists = request.locator.get_project(package_name)
if not dists.get('urls'):
return None
pkgs = {}
for version, url_set in six.iteritems(dists['urls']):
for version, url_set in six.iteritems(dists.get('urls', {})):
dist = dists[version]
for url in url_set:
filename = posixpath.basename(url)
Expand Down

1 comment on commit 545c433

@avihoo
Copy link

@avihoo avihoo commented on 545c433 May 27, 2015

Choose a reason for hiding this comment

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

looks good!

Please sign in to comment.