no-reexec-on-debian
authorSteve Langasek <vorlon@debian.org>
Thu, 24 Aug 2017 10:12:52 +0000 (11:12 +0100)
committerMichael Hudson-Doyle <michael.hudson@ubuntu.com>
Thu, 24 Aug 2017 10:12:52 +0000 (11:12 +0100)
Gbp-Pq: Name no-reexec-on-debian.patch

cmd/cmd.go
cmd/cmd_test.go

index 9e8d6ad4c6e536ae15bc06b49fcece16fb954a3a..5bc24316b296079f2ed5b5dba3c59f46e5cfc5e1 100644 (file)
@@ -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
        }
index bc529488bcdb1798d619a23692d9db9735bb4099..3eb7126d09289c0f43e1f7ce3660b63c99523e4c 100644 (file)
@@ -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))