Skip to content

Commit

Permalink
hack to make sure index always generated on startup.
Browse files Browse the repository at this point in the history
- TODO: observe when a new package (not just a version) is added
  • Loading branch information
Whit Morriss committed Feb 8, 2012
1 parent 87177ee commit ea2bcf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cheeseprism/index.py
Expand Up @@ -222,7 +222,13 @@ def bulk_update_index_at_start(event):
arch_baseurl=abu)
new_pkgs = index.update_data(datafile)

return list(notify_packages_added(index, new_pkgs, reg))
pkg_added = list(notify_packages_added(index, new_pkgs, reg))

home_file = index.path / index.root_index_file
if not home_file.exists():
items = index.projects_from_archives()
index.write_index_home(home_file, items)
return pkg_added


class EnvFactory(object):
Expand Down

0 comments on commit ea2bcf4

Please sign in to comment.