Update state when storing package

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>