From: Steve Langasek Date: Tue, 26 Sep 2017 17:41:53 +0000 (+0100) Subject: no-reexec-on-debian X-Git-Tag: archive/raspbian/2.27.6-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fa47ad09fe97da1042b5d98e96bd811236959949;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))