fix indentation & trailing whitespace in pkg state
Merge pull request #10396 from hulu/fix-indent-whitespace

fix indentation & trailing whitespace in pkg state