support sync upstream first. fixed #451
Merge pull request #452 from cnpm/sync-upstream-package

support sync upstream first. fixed #451