Fix infinite loop after a native package installed

When upgrading a tpkg requires installation of a native package
Merge pull request #38 from jaeheung90/master

Bug fix: Preventing infinite loop after installing a native dependency package.