Skip to content

Commit

Permalink
Make apply_packages phase more apparent (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Feb 10, 2020
1 parent 88fba65 commit 858f085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions repology/update/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,16 @@ def update_repology(database: Database, projects: Iterable[List[Package]], logge
# This was picked randomly
enable_analyze = stats.change_fraction > 0.05

logger.log('finalizing projects update')
database.update_post_packages(enable_partial, enable_analyze)

logger.log('updating field statistics')

for repo, field_stats in field_stats_per_repo.items():
database.update_repository_used_package_fields(repo, field_stats.get_used_fields())

# Note: before this, packages table still contains old versions of packages,
# while new versions reside in incoming_packages temporary table
logger.log('applying updated packages')
database.update_apply_packages(enable_partial, enable_analyze)
# Note: after this, packages table contain new versions of packages

logger.log('updating metapackages')
database.update_metapackages()

Expand Down
File renamed without changes.

0 comments on commit 858f085

Please sign in to comment.