Update mod_init docstring as per Daniel Miller's request

This commit is contained in:
Thomas S Hatch 2012-10-11 22:08:17 -06:00
parent e01eeba447
commit 8a404fd4c8

View file

@ -245,7 +245,14 @@ def purged(name):
def mod_init(low):
'''
Refresh the package database here so that it only needs to happen once
Set a flag to tell the install functions to refresh the package database.
This ensures that the package database is refreshed only once durring
a state run significaltly improving the speed of package management
durring a state run.
It sets a flag for a number of reasons, primarily due to timeline logic.
When originally setting up the mod_init for pkg a number of corner cases
arose with different package managers and how they refresh package data.
'''
if low['fun'] == 'installed' or low['fun'] == 'latest':
rtag = __gen_rtag()