update inner data when packages changed
ignore duplicate packages