From: Steve Langasek Date: Thu, 24 Aug 2017 17:53:18 +0000 (+0100) Subject: no-reexec-on-debian X-Git-Tag: archive/raspbian/2.27.6-1+rpi1~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d3fab11d24778e8749c6b6d21bde646561de3d0c;p=snapd.git no-reexec-on-debian Gbp-Pq: Name no-reexec-on-debian.patch --- diff --git a/cmd/cmd.go b/cmd/cmd.go index 9e8d6ad4..5bc24316 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -67,7 +67,7 @@ func distroSupportsReExec() bool { return false } switch release.ReleaseInfo.ID { - case "fedora", "centos", "rhel", "opensuse", "suse", "poky", "arch": + case "fedora", "centos", "rhel", "opensuse", "suse", "poky", "arch", "debian": logger.Debugf("re-exec not supported on distro %q yet", release.ReleaseInfo.ID) return false } diff --git a/cmd/cmd_test.go b/cmd/cmd_test.go index bc529488..3eb7126d 100644 --- a/cmd/cmd_test.go +++ b/cmd/cmd_test.go @@ -131,7 +131,7 @@ func (s *cmdSuite) TestDistroSupportsReExec(c *C) { } // While others do. - for _, id := range []string{"debian", "ubuntu"} { + for _, id := range []string{"ubuntu"} { restore = release.MockReleaseInfo(&release.OS{ID: id}) defer restore() c.Check(cmd.DistroSupportsReExec(), Equals, true, Commentf("ID: %q", id))