Skip to content

Commit

Permalink
cmd/snap: use CoreLibExecDir instead of DistroLibExecDir
Browse files Browse the repository at this point in the history
  • Loading branch information
morphis committed Apr 25, 2017
1 parent b8784b9 commit 417b113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Expand Up @@ -91,7 +91,7 @@ func ExecInCoreSnap() {
// ensure we do not re-exec into an older version of snapd, look
// for info file and ignore version of core that do not yet have
// it
fullInfo := filepath.Join(corePath, dirs.DistroLibExecDir, "info")
fullInfo := filepath.Join(corePath, dirs.CoreLibExecDir, "info")
if !osutil.FileExists(fullInfo) {
logger.Debugf("not restarting into %q (no version info): older than %q (%s)", full, exe, Version)
return
Expand Down
2 changes: 1 addition & 1 deletion cmd/snap/cmd_run_test.go
Expand Up @@ -450,7 +450,7 @@ func (s *SnapSuite) TestSnapRunIsReexeced(c *check.C) {
readlink string
expected bool
}{
{filepath.Join(dirs.SnapMountDir, dirs.DistroLibExecDir, "snapd"), true},
{filepath.Join(dirs.SnapMountDir, dirs.CoreLibExecDir, "snapd"), true},
{fmt.Sprintf("%s/snapd", dirs.DistroLibExecDir), false},
} {
osReadlinkResult = t.readlink
Expand Down

0 comments on commit 417b113

Please sign in to comment.