mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
cros_workon: fix bug where cros_workon start doesn't work for first start
If the checkout dir doesn't already exist cros_workon start will print the wrong dir. Fixed by using readlink -m instead. BUG=none TEST=Verified that first start is incorrect without this patch but is fixed with this patch. Change-Id: I5db29a8c1737dea1dbe4866e18576f67b9355f84 Review URL: http://codereview.chromium.org/3434008
This commit is contained in:
parent
f0eb4604d7
commit
120d91df01
@ -155,9 +155,9 @@ find_repo_dir () {
|
|||||||
regen_manifest_and_sync() {
|
regen_manifest_and_sync() {
|
||||||
for pkgname in $(show_live_ebuilds); do
|
for pkgname in $(show_live_ebuilds); do
|
||||||
eval $(${EBUILDCMD} $(${EQUERYCMD} which ${pkgname}) info)
|
eval $(${EBUILDCMD} $(${EQUERYCMD} which ${pkgname}) info)
|
||||||
local srcdir=$(readlink -f ${CROS_WORKON_SRCDIR})
|
local srcdir=$(readlink -m ${CROS_WORKON_SRCDIR})
|
||||||
local trunkdir=$(readlink -f ${CHROOT_TRUNK_DIR})
|
local trunkdir=$(readlink -m ${CHROOT_TRUNK_DIR})
|
||||||
local project_path=${srcdir#$(readlink -f ${CHROOT_TRUNK_DIR})/}
|
local project_path=${srcdir#${trunkdir}/}
|
||||||
|
|
||||||
loman add --workon "${CROS_WORKON_PROJECT}" "${project_path}"
|
loman add --workon "${CROS_WORKON_PROJECT}" "${project_path}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user