dev_install: Correctly fetch package.provided

package.provided lives under etc/portage/profile instead of root
directory. Also fix a bug for the return code of curl command.

TEST=Run 'dev_install --yes --reinstall' on a Link device. Verify
the content is correct in:

Change-Id: I1ab7400d7ca116509c2ea42c791ae80fdd9fa015
Reviewed-by: Mike Frysinger <>
Reviewed-by: Chris Sosa <>
Tested-by: Hsinyu Chao <>
Commit-Queue: Hsinyu Chao <>
1 file changed