Merge "Assign all flags during initial package scan or update." into tm-qpr-dev