Request 483839 (accepted)
Update to upstream release 2.25.6
Submit package home:mrmorph:branches:system:snappy / snapd to package system:snappy / snapd
| [-] [+] | Changed | snapd.changes |
| [-] [+] | Changed | snapd.spec ^ |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/arch ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/asserts ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/asserts/assertstest ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/asserts/signtool ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/asserts/snapasserts ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/asserts/sysdb ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/asserts/systestkeys ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/boot ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/boot/boottest ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/client ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/client/client.go ^ |
| @@ -1,518 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2015-2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package client - -import ( - "bytes" - "encoding/json" - "fmt" - "io" - "io/ioutil" - "net" - "net/http" - "net/url" - "os" - "path" - "syscall" - "time" - - "github.com/snapcore/snapd/dirs" -) - -func unixDialer() func(string, string) (net.Conn, error) { - // We have two sockets available: the SnapdSocket (which provides - // administrative access), and the SnapSocket (which doesn't). Use the most - // powerful one available (e.g. from within snaps, SnapdSocket is hidden by - // apparmor unless the snap has the snapd-control interface). - socketPath := dirs.SnapdSocket - file, err := os.OpenFile(socketPath, os.O_RDWR, 0666) - if err == nil { - file.Close() - } else if e, ok := err.(*os.PathError); ok && (e.Err == syscall.ENOENT || e.Err == syscall.EACCES) { - socketPath = dirs.SnapSocket - } - - return func(_, _ string) (net.Conn, error) { - return net.Dial("unix", socketPath) - } -} - -type doer interface { - Do(*http.Request) (*http.Response, error) -} - -// Config allows to customize client behavior. -type Config struct { - // BaseURL contains the base URL where snappy daemon is expected to be. - // It can be empty for a default behavior of talking over a unix socket. - BaseURL string - - // DisableAuth controls whether the client should send an - // Authorization header from reading the auth.json data. - DisableAuth bool -} - -// A Client knows how to talk to the snappy daemon. -type Client struct { - baseURL url.URL - doer doer - - disableAuth bool -} - -// New returns a new instance of Client -func New(config *Config) *Client { - if config == nil { - config = &Config{} - } - - // By default talk over an UNIX socket. - if config.BaseURL == "" { - return &Client{ - baseURL: url.URL{ - Scheme: "http", - Host: "localhost", - }, - doer: &http.Client{ - Transport: &http.Transport{Dial: unixDialer()}, - }, - disableAuth: config.DisableAuth, - } - } - - baseURL, err := url.Parse(config.BaseURL) - if err != nil { - panic(fmt.Sprintf("cannot parse server base URL: %q (%v)", config.BaseURL, err)) - } - return &Client{ - baseURL: *baseURL, - doer: &http.Client{}, - disableAuth: config.DisableAuth, - } -} - -func (client *Client) setAuthorization(req *http.Request) error { - user, err := readAuthData() - if os.IsNotExist(err) { - return nil - } - if err != nil { - return err - } - - var buf bytes.Buffer - fmt.Fprintf(&buf, `Macaroon root="%s"`, user.Macaroon) - for _, discharge := range user.Discharges { - fmt.Fprintf(&buf, `, discharge="%s"`, discharge) - } - req.Header.Set("Authorization", buf.String()) - return nil -} - -type RequestError struct{ error } - -func (e RequestError) Error() string { - return fmt.Sprintf("cannot build request: %v", e.error) -} - -type AuthorizationError struct{ error } - -func (e AuthorizationError) Error() string { - return fmt.Sprintf("cannot add authorization: %v", e.error) -} - -type ConnectionError struct{ error } - -func (e ConnectionError) Error() string { - return fmt.Sprintf("cannot communicate with server: %v", e.error) -} - -// raw performs a request and returns the resulting http.Response and -// error you usually only need to call this directly if you expect the -// response to not be JSON, otherwise you'd call Do(...) instead. -func (client *Client) raw(method, urlpath string, query url.Values, headers map[string]string, body io.Reader) (*http.Response, error) { - // fake a url to keep http.Client happy - u := client.baseURL - u.Path = path.Join(client.baseURL.Path, urlpath) - u.RawQuery = query.Encode() - req, err := http.NewRequest(method, u.String(), body) - if err != nil { - return nil, RequestError{err} - } - - for key, value := range headers { - req.Header.Set(key, value) - } - - if !client.disableAuth { - // set Authorization header if there are user's credentials - err = client.setAuthorization(req) - if err != nil { - return nil, AuthorizationError{err} - } - } - - rsp, err := client.doer.Do(req) - if err != nil { - return nil, ConnectionError{err} - } - - return rsp, nil -} - -var ( - doRetry = 250 * time.Millisecond - doTimeout = 5 * time.Second -) - -// MockDoRetry mocks the delays used by the do retry loop. -func MockDoRetry(retry, timeout time.Duration) (restore func()) { - oldRetry := doRetry - oldTimeout := doTimeout - doRetry = retry - doTimeout = timeout - return func() { - doRetry = oldRetry - doTimeout = oldTimeout - } -} - -// do performs a request and decodes the resulting json into the given -// value. It's low-level, for testing/experimenting only; you should -// usually use a higher level interface that builds on this. | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/client/client_test.go ^ |
| @@ -1,442 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2015-2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package client_test - -import ( - "errors" - "fmt" - "io/ioutil" - "net" - "net/http" - "net/http/httptest" - "os" - "path/filepath" - "strings" - "testing" - "time" - - . "gopkg.in/check.v1" - - "github.com/snapcore/snapd/client" - "github.com/snapcore/snapd/dirs" -) - -// Hook up check.v1 into the "go test" runner -func Test(t *testing.T) { TestingT(t) } - -type clientSuite struct { - cli *client.Client - req *http.Request - reqs []*http.Request - rsp string - rsps []string - err error - doCalls int - header http.Header - status int -} - -var _ = Suite(&clientSuite{}) - -func (cs *clientSuite) SetUpTest(c *C) { - os.Setenv(client.TestAuthFileEnvKey, filepath.Join(c.MkDir(), "auth.json")) - cs.cli = client.New(nil) - cs.cli.SetDoer(cs) - cs.err = nil - cs.req = nil - cs.reqs = nil - cs.rsp = "" - cs.rsps = nil - cs.req = nil - cs.header = nil - cs.status = http.StatusOK - cs.doCalls = 0 - - dirs.SetRootDir(c.MkDir()) -} - -func (cs *clientSuite) TearDownTest(c *C) { - os.Unsetenv(client.TestAuthFileEnvKey) -} - -func (cs *clientSuite) Do(req *http.Request) (*http.Response, error) { - cs.req = req - cs.reqs = append(cs.reqs, req) - body := cs.rsp - if cs.doCalls < len(cs.rsps) { - body = cs.rsps[cs.doCalls] - } - rsp := &http.Response{ - Body: ioutil.NopCloser(strings.NewReader(body)), - Header: cs.header, - StatusCode: cs.status, - } - cs.doCalls++ - return rsp, cs.err -} - -func (cs *clientSuite) TestNewPanics(c *C) { - c.Assert(func() { - client.New(&client.Config{BaseURL: ":"}) - }, PanicMatches, `cannot parse server base URL: ":" \(parse :: missing protocol scheme\)`) -} - -func (cs *clientSuite) TestClientDoReportsErrors(c *C) { - restore := client.MockDoRetry(10*time.Millisecond, 100*time.Millisecond) - defer restore() - cs.err = errors.New("ouchie") - err := cs.cli.Do("GET", "/", nil, nil, nil) - c.Check(err, ErrorMatches, "cannot communicate with server: ouchie") - if cs.doCalls < 2 { - c.Fatalf("do did not retry") - } -} - -func (cs *clientSuite) TestClientWorks(c *C) { - var v []int - cs.rsp = `[1,2]` - reqBody := ioutil.NopCloser(strings.NewReader("")) - err := cs.cli.Do("GET", "/this", nil, reqBody, &v) - c.Check(err, IsNil) - c.Check(v, DeepEquals, []int{1, 2}) - c.Assert(cs.req, NotNil) - c.Assert(cs.req.URL, NotNil) - c.Check(cs.req.Method, Equals, "GET") - c.Check(cs.req.Body, Equals, reqBody) - c.Check(cs.req.URL.Path, Equals, "/this") -} - -func (cs *clientSuite) TestClientDefaultsToNoAuthorization(c *C) { - os.Setenv(client.TestAuthFileEnvKey, filepath.Join(c.MkDir(), "json")) - defer os.Unsetenv(client.TestAuthFileEnvKey) - - var v string - _ = cs.cli.Do("GET", "/this", nil, nil, &v) - c.Assert(cs.req, NotNil) - authorization := cs.req.Header.Get("Authorization") - c.Check(authorization, Equals, "") -} - -func (cs *clientSuite) TestClientSetsAuthorization(c *C) { - os.Setenv(client.TestAuthFileEnvKey, filepath.Join(c.MkDir(), "json")) - defer os.Unsetenv(client.TestAuthFileEnvKey) - - mockUserData := client.User{ - Macaroon: "macaroon", - Discharges: []string{"discharge"}, - } - err := client.TestWriteAuth(mockUserData) - c.Assert(err, IsNil) - - var v string - _ = cs.cli.Do("GET", "/this", nil, nil, &v) - authorization := cs.req.Header.Get("Authorization") - c.Check(authorization, Equals, `Macaroon root="macaroon", discharge="discharge"`) -} - -func (cs *clientSuite) TestClientHonorsDisableAuth(c *C) { - os.Setenv(client.TestAuthFileEnvKey, filepath.Join(c.MkDir(), "json")) - defer os.Unsetenv(client.TestAuthFileEnvKey) - - mockUserData := client.User{ - Macaroon: "macaroon", - Discharges: []string{"discharge"}, - } - err := client.TestWriteAuth(mockUserData) - c.Assert(err, IsNil) - - var v string - cli := client.New(&client.Config{DisableAuth: true}) - cli.SetDoer(cs) - _ = cli.Do("GET", "/this", nil, nil, &v) - authorization := cs.req.Header.Get("Authorization") - c.Check(authorization, Equals, "") -} - -func (cs *clientSuite) TestClientSysInfo(c *C) { - cs.rsp = `{"type": "sync", "result": - {"series": "16", - "version": "2", - "os-release": {"id": "ubuntu", "version-id": "16.04"}, - "on-classic": true}}` - sysInfo, err := cs.cli.SysInfo() - c.Check(err, IsNil) - c.Check(sysInfo, DeepEquals, &client.SysInfo{ - Version: "2", - Series: "16", - OSRelease: client.OSRelease{ - ID: "ubuntu", - VersionID: "16.04", - }, - OnClassic: true, - }) -} - -func (cs *clientSuite) TestServerVersion(c *C) { - cs.rsp = `{"type": "sync", "result": - {"series": "16", - "version": "2", - "os-release": {"id": "zyggy", "version-id": "123"}}}` - version, err := cs.cli.ServerVersion() - c.Check(err, IsNil) - c.Check(version, DeepEquals, &client.ServerVersion{ | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/decode-mount-opts ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/libsnap-confine-private ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/misc ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/data ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/data/apt-keys ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/distros ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/cgroup-used ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/core-is-preferred ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/debug-flags ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/discard-inexisting-ns ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/discard-ns ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/hostfs-created-on-demand ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/media-sharing ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/media-visible-in-devmode ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.qemu.amd64.json ^ |
| @@ -1,808 +0,0 @@ -[ - { - "fs_type": "squashfs", - "mount_opts": "rw,relatime", - "mount_point": "/", - "mount_src": "/dev/remapped-loop0", - "opt_fields": [ - "master:renumbered/0" - ], - "root_dir": "/" - }, - { - "fs_type": "devtmpfs", - "mount_opts": "rw,nosuid,relatime", - "mount_point": "/dev", - "mount_src": "udev", - "opt_fields": [ - "master:renumbered/1" - ], - "root_dir": "/" - }, - { - "fs_type": "hugetlbfs", - "mount_opts": "rw,relatime", - "mount_point": "/dev/hugepages", - "mount_src": "hugetlbfs", - "opt_fields": [ - "master:renumbered/2" - ], - "root_dir": "/" - }, - { - "fs_type": "mqueue", - "mount_opts": "rw,relatime", - "mount_point": "/dev/mqueue", - "mount_src": "mqueue", - "opt_fields": [ - "master:renumbered/3" - ], - "root_dir": "/" - }, - { - "fs_type": "devpts", - "mount_opts": "rw,relatime", - "mount_point": "/dev/ptmx", - "mount_src": "devpts", - "opt_fields": [], - "root_dir": "/ptmx" - }, - { - "fs_type": "devpts", - "mount_opts": "rw,nosuid,noexec,relatime", - "mount_point": "/dev/pts", - "mount_src": "devpts", - "opt_fields": [ - "master:renumbered/4" - ], - "root_dir": "/" - }, - { - "fs_type": "devpts", - "mount_opts": "rw,relatime", - "mount_point": "/dev/pts", - "mount_src": "devpts", - "opt_fields": [], - "root_dir": "/" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,nodev", - "mount_point": "/dev/shm", - "mount_src": "tmpfs", - "opt_fields": [ - "master:renumbered/5" - ], - "root_dir": "/" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/etc", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "master:renumbered/6" - ], - "root_dir": "/etc" - }, - { - "fs_type": "squashfs", - "mount_opts": "rw,relatime", - "mount_point": "/etc/alternatives", - "mount_src": "/dev/remapped-loop0", - "opt_fields": [ - "master:renumbered/0" - ], - "root_dir": "/etc/alternatives" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/home", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "master:renumbered/6" - ], - "root_dir": "/home" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/lib/modules", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "master:renumbered/6" - ], - "root_dir": "/lib/modules" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/media", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "shared:renumbered/7" - ], - "root_dir": "/media" - }, - { - "fs_type": "proc", - "mount_opts": "rw,nosuid,nodev,noexec,relatime", - "mount_point": "/proc", - "mount_src": "proc", - "opt_fields": [ - "master:renumbered/8" - ], - "root_dir": "/" - }, - { - "fs_type": "autofs", - "mount_opts": "rw,relatime", - "mount_point": "/proc/sys/fs/binfmt_misc", - "mount_src": "systemd-1", - "opt_fields": [ - "master:renumbered/9" - ], - "root_dir": "/" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/root", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "master:renumbered/6" - ], - "root_dir": "/root" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,noexec,relatime", - "mount_point": "/run", - "mount_src": "tmpfs", - "opt_fields": [ - "master:renumbered/10" - ], - "root_dir": "/" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,nodev,noexec,relatime", - "mount_point": "/run/lock", - "mount_src": "tmpfs", - "opt_fields": [ - "master:renumbered/11" - ], - "root_dir": "/" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,noexec,relatime", - "mount_point": "/run/snapd/ns", - "mount_src": "tmpfs", - "opt_fields": [], - "root_dir": "/snapd/ns" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,nodev,relatime", - "mount_point": "/run/user/NUMBER", - "mount_src": "tmpfs", - "opt_fields": [ - "master:renumbered/12" - ], - "root_dir": "/" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/snap", | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.qemu.amd64.json ^ |
| @@ -1,798 +0,0 @@ -[ - { - "fs_type": "squashfs", - "mount_opts": "rw,relatime", - "mount_point": "/", - "mount_src": "/dev/remapped-loop0", - "opt_fields": [ - "master:renumbered/0" - ], - "root_dir": "/" - }, - { - "fs_type": "devtmpfs", - "mount_opts": "rw,nosuid,relatime", - "mount_point": "/dev", - "mount_src": "udev", - "opt_fields": [ - "master:renumbered/1" - ], - "root_dir": "/" - }, - { - "fs_type": "hugetlbfs", - "mount_opts": "rw,relatime", - "mount_point": "/dev/hugepages", - "mount_src": "hugetlbfs", - "opt_fields": [ - "master:renumbered/2" - ], - "root_dir": "/" - }, - { - "fs_type": "mqueue", - "mount_opts": "rw,relatime", - "mount_point": "/dev/mqueue", - "mount_src": "mqueue", - "opt_fields": [ - "master:renumbered/3" - ], - "root_dir": "/" - }, - { - "fs_type": "devpts", - "mount_opts": "rw,relatime", - "mount_point": "/dev/ptmx", - "mount_src": "devpts", - "opt_fields": [], - "root_dir": "/ptmx" - }, - { - "fs_type": "devpts", - "mount_opts": "rw,nosuid,noexec,relatime", - "mount_point": "/dev/pts", - "mount_src": "devpts", - "opt_fields": [ - "master:renumbered/4" - ], - "root_dir": "/" - }, - { - "fs_type": "devpts", - "mount_opts": "rw,relatime", - "mount_point": "/dev/pts", - "mount_src": "devpts", - "opt_fields": [], - "root_dir": "/" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,nodev", - "mount_point": "/dev/shm", - "mount_src": "tmpfs", - "opt_fields": [ - "master:renumbered/5" - ], - "root_dir": "/" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/etc", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "master:renumbered/6" - ], - "root_dir": "/etc" - }, - { - "fs_type": "squashfs", - "mount_opts": "rw,relatime", - "mount_point": "/etc/alternatives", - "mount_src": "/dev/remapped-loop0", - "opt_fields": [ - "master:renumbered/0" - ], - "root_dir": "/etc/alternatives" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/home", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "master:renumbered/6" - ], - "root_dir": "/home" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/lib/modules", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "master:renumbered/6" - ], - "root_dir": "/lib/modules" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/media", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "shared:renumbered/7" - ], - "root_dir": "/media" - }, - { - "fs_type": "proc", - "mount_opts": "rw,nosuid,nodev,noexec,relatime", - "mount_point": "/proc", - "mount_src": "proc", - "opt_fields": [ - "master:renumbered/8" - ], - "root_dir": "/" - }, - { - "fs_type": "autofs", - "mount_opts": "rw,relatime", - "mount_point": "/proc/sys/fs/binfmt_misc", - "mount_src": "systemd-1", - "opt_fields": [ - "master:renumbered/9" - ], - "root_dir": "/" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/root", - "mount_src": "/dev/BLOCK1", - "opt_fields": [ - "master:renumbered/6" - ], - "root_dir": "/root" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,noexec,relatime", - "mount_point": "/run", - "mount_src": "tmpfs", - "opt_fields": [ - "master:renumbered/10" - ], - "root_dir": "/" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,nodev,noexec,relatime", - "mount_point": "/run/lock", - "mount_src": "tmpfs", - "opt_fields": [ - "master:renumbered/11" - ], - "root_dir": "/" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,noexec,relatime", - "mount_point": "/run/snapd/ns", - "mount_src": "tmpfs", - "opt_fields": [], - "root_dir": "/snapd/ns" - }, - { - "fs_type": "tmpfs", - "mount_opts": "rw,nosuid,nodev,relatime", - "mount_point": "/run/user/NUMBER", - "mount_src": "tmpfs", - "opt_fields": [ - "master:renumbered/12" - ], - "root_dir": "/" - }, - { - "fs_type": "ext4", - "mount_opts": "rw,relatime", - "mount_point": "/snap", | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-sharing ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-bin-snap-destination ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-bin-snap-source ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-missing-dst ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-missing-src ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-mount-tmpfs ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-ro-mount ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-rw-mount ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-usr-src ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/test-seccomp-compat ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/test-snap-runs ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/ubuntu-core-launcher-exists ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/user-data-dir-created ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/user-xdg-runtime-dir-created ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/main/version-switch ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/regression ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/spread-tests/regression/lp-1599608 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-confine/tests ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-discard-ns ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-exec ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap-update-ns ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap/main.go ^ |
| @@ -1,312 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2014-2015 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package main - -import ( - "fmt" - "io" - "os" - "os/user" - "path/filepath" - "strings" - "unicode" - - "github.com/jessevdk/go-flags" - - "golang.org/x/crypto/ssh/terminal" - - "github.com/snapcore/snapd/client" - "github.com/snapcore/snapd/cmd" - "github.com/snapcore/snapd/dirs" - "github.com/snapcore/snapd/httputil" - "github.com/snapcore/snapd/i18n" - "github.com/snapcore/snapd/logger" - "github.com/snapcore/snapd/osutil" -) - -func init() { - // set User-Agent for when 'snap' talks to the store directly (snap download etc...) - httputil.SetUserAgentFromVersion(cmd.Version, "snap") -} - -// Standard streams, redirected for testing. -var ( - Stdin io.Reader = os.Stdin - Stdout io.Writer = os.Stdout - Stderr io.Writer = os.Stderr - ReadPassword = terminal.ReadPassword -) - -type options struct { - Version func() `long:"version"` -} - -type argDesc struct { - name string - desc string -} - -var optionsData options - -// ErrExtraArgs is returned if extra arguments to a command are found -var ErrExtraArgs = fmt.Errorf(i18n.G("too many arguments for command")) - -// cmdInfo holds information needed to call parser.AddCommand(...). -type cmdInfo struct { - name, shortHelp, longHelp string - builder func() flags.Commander - hidden bool - optDescs map[string]string - argDescs []argDesc -} - -// commands holds information about all non-experimental commands. -var commands []*cmdInfo - -// experimentalCommands holds information about all experimental commands. -var experimentalCommands []*cmdInfo - -// addCommand replaces parser.addCommand() in a way that is compatible with -// re-constructing a pristine parser. -func addCommand(name, shortHelp, longHelp string, builder func() flags.Commander, optDescs map[string]string, argDescs []argDesc) *cmdInfo { - info := &cmdInfo{ - name: name, - shortHelp: shortHelp, - longHelp: longHelp, - builder: builder, - optDescs: optDescs, - argDescs: argDescs, - } - commands = append(commands, info) - return info -} - -// addExperimentalCommand replaces parser.addCommand() in a way that is -// compatible with re-constructing a pristine parser. It is meant for -// adding experimental commands. -func addExperimentalCommand(name, shortHelp, longHelp string, builder func() flags.Commander) *cmdInfo { - info := &cmdInfo{ - name: name, - shortHelp: shortHelp, - longHelp: longHelp, - builder: builder, - } - experimentalCommands = append(experimentalCommands, info) - return info -} - -type parserSetter interface { - setParser(*flags.Parser) -} - -func lintDesc(cmdName, optName, desc, origDesc string) { - if len(optName) == 0 { - logger.Panicf("option on %q has no name", cmdName) - } - if len(origDesc) != 0 { - logger.Panicf("description of %s's %q of %q set from tag (=> no i18n)", cmdName, optName, origDesc) - } - if len(desc) > 0 { - if !unicode.IsUpper(([]rune)(desc)[0]) { - logger.Panicf("description of %s's %q not uppercase: %q", cmdName, optName, desc) - } - } -} - -func lintArg(cmdName, optName, desc, origDesc string) { - lintDesc(cmdName, optName, desc, origDesc) - if optName[0] != '<' || optName[len(optName)-1] != '>' { - logger.Panicf("argument %q's %q should have <>s", cmdName, optName) - } -} - -// Parser creates and populates a fresh parser. -// Since commands have local state a fresh parser is required to isolate tests -// from each other. -func Parser() *flags.Parser { - optionsData.Version = func() { - printVersions() - panic(&exitStatus{0}) - } - parser := flags.NewParser(&optionsData, flags.HelpFlag|flags.PassDoubleDash|flags.PassAfterNonOption) - parser.ShortDescription = i18n.G("Tool to interact with snaps") - parser.LongDescription = i18n.G(` -Install, configure, refresh and remove snap packages. Snaps are -'universal' packages that work across many different Linux systems, -enabling secure distribution of the latest apps and utilities for -cloud, servers, desktops and the internet of things. - -This is the CLI for snapd, a background service that takes care of -snaps on the system. Start with 'snap list' to see installed snaps. -`) - parser.FindOptionByLongName("version").Description = i18n.G("Print the version and exit") - - // Add all regular commands - for _, c := range commands { - obj := c.builder() - if x, ok := obj.(parserSetter); ok { - x.setParser(parser) - } - - cmd, err := parser.AddCommand(c.name, c.shortHelp, strings.TrimSpace(c.longHelp), obj) - if err != nil { - logger.Panicf("cannot add command %q: %v", c.name, err) - } - cmd.Hidden = c.hidden - - opts := cmd.Options() - if c.optDescs != nil && len(opts) != len(c.optDescs) { - logger.Panicf("wrong number of option descriptions for %s: expected %d, got %d", c.name, len(opts), len(c.optDescs)) - } - for _, opt := range opts { - name := opt.LongName - if name == "" { - name = string(opt.ShortName) - } - desc, ok := c.optDescs[name] - if !(c.optDescs == nil || ok) { - logger.Panicf("%s missing description for %s", c.name, name) - } - lintDesc(c.name, name, desc, opt.Description) - if desc != "" { - opt.Description = desc - } - } - - args := cmd.Args() - if c.argDescs != nil && len(args) != len(c.argDescs) { - logger.Panicf("wrong number of argument descriptions for %s: expected %d, got %d", c.name, len(args), len(c.argDescs)) - } - for i, arg := range args { - name, desc := arg.Name, "" - if c.argDescs != nil { | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snap/test-data ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snapctl ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snapctl/main.go ^ |
| @@ -1,59 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2014-2015 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package main - -import ( - "fmt" - "os" - - "github.com/snapcore/snapd/client" -) - -var clientConfig = client.Config{ - // snapctl should not try to read $HOME/.snap/auth.json, this will - // result in apparmor denials and configure task failures - // (LP: #1660941) - DisableAuth: true, -} - -func main() { - stdout, stderr, err := run() - if err != nil { - fmt.Fprintf(os.Stderr, "error: %s\n", err) - os.Exit(1) - } - - if stdout != nil { - os.Stdout.Write(stdout) - } - - if stderr != nil { - os.Stderr.Write(stderr) - } -} - -func run() (stdout, stderr []byte, err error) { - cli := client.New(&clientConfig) - - return cli.RunSnapctl(&client.SnapCtlOptions{ - ContextID: os.Getenv("SNAP_CONTEXT"), - Args: os.Args[1:], - }) -} | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/snapd ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/cmd/system-shutdown ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/daemon ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/daemon/api.go ^ |
| @@ -1,2313 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2015-2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package daemon - -import ( - "encoding/json" - "errors" - "fmt" - "io" - "io/ioutil" - "mime" - "mime/multipart" - "net/http" - "os" - "os/user" - "path/filepath" - "regexp" - "strconv" - "strings" - "time" - - "github.com/gorilla/mux" - "github.com/jessevdk/go-flags" - - "github.com/snapcore/snapd/asserts" - "github.com/snapcore/snapd/asserts/snapasserts" - "github.com/snapcore/snapd/client" - "github.com/snapcore/snapd/dirs" - "github.com/snapcore/snapd/i18n/dumb" - "github.com/snapcore/snapd/interfaces" - "github.com/snapcore/snapd/logger" - "github.com/snapcore/snapd/osutil" - "github.com/snapcore/snapd/overlord/assertstate" - "github.com/snapcore/snapd/overlord/auth" - "github.com/snapcore/snapd/overlord/configstate" - "github.com/snapcore/snapd/overlord/configstate/config" - "github.com/snapcore/snapd/overlord/devicestate" - "github.com/snapcore/snapd/overlord/hookstate/ctlcmd" - "github.com/snapcore/snapd/overlord/ifacestate" - "github.com/snapcore/snapd/overlord/snapstate" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/progress" - "github.com/snapcore/snapd/release" - "github.com/snapcore/snapd/snap" - "github.com/snapcore/snapd/store" - "github.com/snapcore/snapd/strutil" -) - -var api = []*Command{ - rootCmd, - sysInfoCmd, - loginCmd, - logoutCmd, - appIconCmd, - findCmd, - snapsCmd, - snapCmd, - snapConfCmd, - interfacesCmd, - assertsCmd, - assertsFindManyCmd, - stateChangeCmd, - stateChangesCmd, - createUserCmd, - buyCmd, - readyToBuyCmd, - snapctlCmd, - usersCmd, - sectionsCmd, - aliasesCmd, -} - -var ( - rootCmd = &Command{ - Path: "/", - GuestOK: true, - GET: tbd, - } - - sysInfoCmd = &Command{ - Path: "/v2/system-info", - GuestOK: true, - GET: sysInfo, - } - - loginCmd = &Command{ - Path: "/v2/login", - POST: loginUser, - } - - logoutCmd = &Command{ - Path: "/v2/logout", - POST: logoutUser, - UserOK: true, - } - - appIconCmd = &Command{ - Path: "/v2/icons/{name}/icon", - UserOK: true, - GET: appIconGet, - } - - findCmd = &Command{ - Path: "/v2/find", - UserOK: true, - GET: searchStore, - } - - snapsCmd = &Command{ - Path: "/v2/snaps", - UserOK: true, - GET: getSnapsInfo, - POST: postSnaps, - } - - snapCmd = &Command{ - Path: "/v2/snaps/{name}", - UserOK: true, - GET: getSnapInfo, - POST: postSnap, - } - - snapConfCmd = &Command{ - Path: "/v2/snaps/{name}/conf", - GET: getSnapConf, - PUT: setSnapConf, - } - - interfacesCmd = &Command{ - Path: "/v2/interfaces", - UserOK: true, - GET: getInterfaces, - POST: changeInterfaces, - } - - // TODO: allow to post assertions for UserOK? they are verified anyway - assertsCmd = &Command{ - Path: "/v2/assertions", - POST: doAssert, - } - - assertsFindManyCmd = &Command{ - Path: "/v2/assertions/{assertType}", - UserOK: true, - GET: assertsFindMany, - } - - stateChangeCmd = &Command{ - Path: "/v2/changes/{id}", - UserOK: true, - GET: getChange, - POST: abortChange, - } - - stateChangesCmd = &Command{ - Path: "/v2/changes", - UserOK: true, - GET: getChanges, - } - - createUserCmd = &Command{ - Path: "/v2/create-user", - UserOK: false, - POST: postCreateUser, - } - - buyCmd = &Command{ - Path: "/v2/buy", - UserOK: false, - POST: postBuy, - } - - readyToBuyCmd = &Command{ - Path: "/v2/buy/ready", - UserOK: false, - GET: readyToBuy, - } - - snapctlCmd = &Command{ - Path: "/v2/snapctl", - SnapOK: true, - POST: runSnapctl, | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/completion ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/selinux ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/systemd ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/systemd/snapd.autoimport.service ^ |
| @@ -1,10 +0,0 @@ -[Unit] -Description=Auto import assertions from block devices -After=snapd.service snapd.socket - -[Service] -Type=oneshot -ExecStart=/usr/bin/snap auto-import - -[Install] -WantedBy=multi-user.target | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/systemd/snapd.service ^ |
| @@ -1,11 +0,0 @@ -[Unit] -Description=Snappy daemon -Requires=snapd.socket - -[Service] -ExecStart=/usr/lib/snapd/snapd -EnvironmentFile=/etc/environment -Restart=always - -[Install] -WantedBy=multi-user.target | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/systemd/snapd.socket ^ |
| @@ -1,13 +0,0 @@ -[Unit] -Description=Socket activation for snappy daemon - -[Socket] -ListenStream=/run/snapd.socket -ListenStream=/run/snapd-snap.socket -SocketMode=0666 -# these are the defaults, but can't hurt to specify them anyway: -SocketUser=root -SocketGroup=root - -[Install] -WantedBy=sockets.target | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/systemd/snapd.system-shutdown.service ^ |
| @@ -1,15 +0,0 @@ -[Unit] -Description=Ubuntu core (all-snaps) system shutdown helper setup service -Before=umount.target -DefaultDependencies=false -# don't run on classic -ConditionKernelCommandLine=snap_core -# don't run if system-shutdown isn't there -ConditionPathExists=/usr/lib/snapd/system-shutdown - -[Service] -Type=oneshot -ExecStart=/bin/sh -euc 'mount /run -o remount,exec; mkdir -p /run/initramfs; cp /usr/lib/snapd/system-shutdown /run/initramfs/shutdown' - -[Install] -WantedBy=final.target | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/udev ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/udev/rules.d ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/data/udev/rules.d/66-snapd-autoimport.rules ^ |
| @@ -1,3 +0,0 @@ -# probe for assertions, must run before udisks2 -ACTION=="add", SUBSYSTEM=="block" \ - RUN+="/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/%k" | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/debian ^ |
| -(symlink to packaging/ubuntu-16.04/) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/dirs ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/docs ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/errtracker ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/etc ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/etc/X11 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/etc/X11/Xsession.d ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/etc/profile.d ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/httputil ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/i18n ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/i18n/dumb ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/i18n/xgettext-go ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/image ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/apparmor ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/backends ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/builtin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/dbus ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/ifacetest ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/kmod ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/mount ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/policy ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/seccomp ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/systemd ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/interfaces/udev ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/logger ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/osutil ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/assertstate ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/auth ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/configstate ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/configstate/config ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/configstate/tasksets.go ^ |
| @@ -1,54 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package configstate - -import ( - "fmt" - - "github.com/snapcore/snapd/i18n/dumb" - "github.com/snapcore/snapd/overlord/hookstate" - "github.com/snapcore/snapd/overlord/snapstate" - "github.com/snapcore/snapd/overlord/state" -) - -func init() { - snapstate.Configure = Configure -} - -// Configure returns a taskset to apply the given configuration patch. -func Configure(s *state.State, snapName string, patch map[string]interface{}) *state.TaskSet { - hooksup := &hookstate.HookSetup{ - Snap: snapName, - Hook: "configure", - Optional: len(patch) == 0, - } - var contextData map[string]interface{} - if len(patch) > 0 { - contextData = map[string]interface{}{"patch": patch} - } - var summary string - if hooksup.Optional { - summary = fmt.Sprintf(i18n.G("Run configure hook of %q snap if present"), snapName) - } else { - summary = fmt.Sprintf(i18n.G("Run configure hook of %q snap"), snapName) - } - task := hookstate.HookTask(s, summary, hooksup, contextData) - return state.NewTaskSet(task) -} | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/configstate/tasksets_test.go ^ |
| @@ -1,101 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package configstate_test - -import ( - . "gopkg.in/check.v1" - - "github.com/snapcore/snapd/overlord/configstate" - "github.com/snapcore/snapd/overlord/hookstate" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/snap" -) - -type tasksetsSuite struct { - state *state.State -} - -var _ = Suite(&tasksetsSuite{}) - -func (s *tasksetsSuite) SetUpTest(c *C) { - s.state = state.New(nil) -} - -var configureTests = []struct { - patch map[string]interface{} - optional bool -}{{ - patch: nil, - optional: true, -}, { - patch: map[string]interface{}{}, - optional: true, -}, { - patch: map[string]interface{}{"foo": "bar"}, - optional: false, -}} - -func (s *tasksetsSuite) TestConfigure(c *C) { - for _, test := range configureTests { - s.state.Lock() - taskset := configstate.Configure(s.state, "test-snap", test.patch) - s.state.Unlock() - - tasks := taskset.Tasks() - c.Assert(tasks, HasLen, 1) - task := tasks[0] - - c.Assert(task.Kind(), Equals, "run-hook") - - summary := `Run configure hook of "test-snap" snap` - if test.optional { - summary += " if present" - } - c.Assert(task.Summary(), Equals, summary) - - var hooksup hookstate.HookSetup - s.state.Lock() - err := task.Get("hook-setup", &hooksup) - s.state.Unlock() - c.Check(err, IsNil) - - c.Assert(hooksup.Snap, Equals, "test-snap") - c.Assert(hooksup.Hook, Equals, "configure") - c.Assert(hooksup.Optional, Equals, test.optional) - - context, err := hookstate.NewContext(task, &hooksup, nil) - c.Check(err, IsNil) - c.Check(context.SnapName(), Equals, "test-snap") - c.Check(context.SnapRevision(), Equals, snap.Revision{}) - c.Check(context.HookName(), Equals, "configure") - - var patch map[string]interface{} - context.Lock() - err = context.Get("patch", &patch) - context.Unlock() - if len(test.patch) > 0 { - c.Check(err, IsNil) - c.Check(patch, DeepEquals, test.patch) - } else { - c.Check(err, Equals, state.ErrNoState) - c.Check(patch, IsNil) - } - } -} | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/devicestate ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/hookstate ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/hookstate/context.go ^ |
| @@ -1,213 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package hookstate - -import ( - "crypto/rand" - "encoding/base64" - "encoding/json" - "fmt" - "sync" - "sync/atomic" - - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/snap" -) - -// Context represents the context under which a given hook is running. -type Context struct { - task *state.Task - setup *HookSetup - id string - handler Handler - - cache map[interface{}]interface{} - onDone []func() error - - mutex sync.Mutex - mutexChecker int32 -} - -// NewContext returns a new Context. -func NewContext(task *state.Task, setup *HookSetup, handler Handler) (*Context, error) { - // Generate a secure, random ID for this context - idBytes := make([]byte, 32) - _, err := rand.Read(idBytes) - if err != nil { - return nil, fmt.Errorf("cannot generate context ID: %s", err) - } - - return &Context{ - task: task, - setup: setup, - id: base64.URLEncoding.EncodeToString(idBytes), - handler: handler, - cache: make(map[interface{}]interface{}), - }, nil -} - -// SnapName returns the name of the snap containing the hook. -func (c *Context) SnapName() string { - return c.setup.Snap -} - -// SnapRevision returns the revision of the snap containing the hook. -func (c *Context) SnapRevision() snap.Revision { - return c.setup.Revision -} - -// HookName returns the name of the hook in this context. -func (c *Context) HookName() string { - return c.setup.Hook -} - -// ID returns the ID of the context. -func (c *Context) ID() string { - return c.id -} - -// Handler returns the handler for this context -func (c *Context) Handler() Handler { - return c.handler -} - -// Lock acquires the lock for this context (required for Set/Get, Cache/Cached), -// and OnDone/Done). -func (c *Context) Lock() { - c.mutex.Lock() - c.task.State().Lock() - atomic.AddInt32(&c.mutexChecker, 1) -} - -// Unlock releases the lock for this context. -func (c *Context) Unlock() { - atomic.AddInt32(&c.mutexChecker, -1) - c.task.State().Unlock() - c.mutex.Unlock() -} - -func (c *Context) reading() { - if atomic.LoadInt32(&c.mutexChecker) != 1 { - panic("internal error: accessing context without lock") - } -} - -func (c *Context) writing() { - if atomic.LoadInt32(&c.mutexChecker) != 1 { - panic("internal error: accessing context without lock") - } -} - -// Set associates value with key. The provided value must properly marshal and -// unmarshal with encoding/json. Note that the context needs to be locked and -// unlocked by the caller. -func (c *Context) Set(key string, value interface{}) { - c.writing() - - var data map[string]*json.RawMessage - if err := c.task.Get("hook-context", &data); err != nil && err != state.ErrNoState { - panic(fmt.Sprintf("internal error: cannot unmarshal context: %v", err)) - } - if data == nil { - data = make(map[string]*json.RawMessage) - } - - marshalledValue, err := json.Marshal(value) - if err != nil { - panic(fmt.Sprintf("internal error: cannot marshal context value for %q: %s", key, err)) - } - raw := json.RawMessage(marshalledValue) - data[key] = &raw - - c.task.Set("hook-context", data) -} - -// Get unmarshals the stored value associated with the provided key into the -// value parameter. Note that the context needs to be locked/unlocked by the -// caller. -func (c *Context) Get(key string, value interface{}) error { - c.reading() - - var data map[string]*json.RawMessage - if err := c.task.Get("hook-context", &data); err != nil { - return err - } - - raw, ok := data[key] - if !ok { - return state.ErrNoState - } - - err := json.Unmarshal([]byte(*raw), &value) - if err != nil { - return fmt.Errorf("cannot unmarshal context value for %q: %s", key, err) - } - - return nil -} - -// State returns the state contained within the context -func (c *Context) State() *state.State { - return c.task.State() -} - -// Cached returns the cached value associated with the provided key. It returns -// nil if there is no entry for key. Note that the context needs to be locked -// and unlocked by the caller. -func (c *Context) Cached(key interface{}) interface{} { - c.reading() - - return c.cache[key] -} - -// Cache associates value with key. The cached value is not persisted. Note that -// the context needs to be locked/unlocked by the caller. -func (c *Context) Cache(key, value interface{}) { - c.writing() - - c.cache[key] = value -} - -// OnDone requests the provided function to be run once the context knows it's -// complete. This can be called multiple times; each function will be called in -// the order in which they were added. Note that the context needs to be locked -// and unlocked by the caller. -func (c *Context) OnDone(f func() error) { - c.writing() - - c.onDone = append(c.onDone, f) -} - -// Done is called to notify the context that its hook has exited successfully. -// It will call all of the functions added in OnDone (even if one of them | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/hookstate/ctlcmd ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/hookstate/export_test.go ^ |
| @@ -1,28 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package hookstate - -func MockReadlink(f func(string) (string, error)) func() { - oldReadlink := osReadlink - osReadlink = f - return func() { - osReadlink = oldReadlink - } -} | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/hookstate/hookmgr.go ^ |
| @@ -1,316 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -// Package hookstate implements the manager and state aspects responsible for -// the running of hooks. -package hookstate - -import ( - "bytes" - "fmt" - "os" - "os/exec" - "path/filepath" - "regexp" - "strings" - "sync" - - "gopkg.in/tomb.v2" - - "github.com/snapcore/snapd/dirs" - "github.com/snapcore/snapd/osutil" - "github.com/snapcore/snapd/overlord/snapstate" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/snap" -) - -// HookManager is responsible for the maintenance of hooks in the system state. -// It runs hooks when they're requested, assuming they're present in the given -// snap. Otherwise they're skipped with no error. -type HookManager struct { - state *state.State - runner *state.TaskRunner - repository *repository - - contextsMutex sync.RWMutex - contexts map[string]*Context -} - -// Handler is the interface a client must satify to handle hooks. -type Handler interface { - // Before is called right before the hook is to be run. - Before() error - - // Done is called right after the hook has finished successfully. - Done() error - - // Error is called if the hook encounters an error while running. - Error(err error) error -} - -// HandlerGenerator is the function signature required to register for hooks. -type HandlerGenerator func(*Context) Handler - -// HookSetup is a reference to a hook within a specific snap. -type HookSetup struct { - Snap string `json:"snap"` - Revision snap.Revision `json:"revision"` - Hook string `json:"hook"` - Optional bool `json:"optional,omitempty"` -} - -// Manager returns a new HookManager. -func Manager(s *state.State) (*HookManager, error) { - runner := state.NewTaskRunner(s) - manager := &HookManager{ - state: s, - runner: runner, - repository: newRepository(), - contexts: make(map[string]*Context), - } - - runner.AddHandler("run-hook", manager.doRunHook, nil) - - return manager, nil -} - -// HookTask returns a task that will run the specified hook. Note that the -// initial context must properly marshal and unmarshal with encoding/json. -func HookTask(st *state.State, summary string, setup *HookSetup, contextData map[string]interface{}) *state.Task { - task := st.NewTask("run-hook", summary) - task.Set("hook-setup", setup) - - // Initial data for Context.Get/Set. - if len(contextData) > 0 { - task.Set("hook-context", contextData) - } - return task -} - -// Register registers a function to create Handler values whenever hooks -// matching the provided pattern are run. -func (m *HookManager) Register(pattern *regexp.Regexp, generator HandlerGenerator) { - m.repository.addHandlerGenerator(pattern, generator) -} - -// Ensure implements StateManager.Ensure. -func (m *HookManager) Ensure() error { - m.runner.Ensure() - return nil -} - -// Wait implements StateManager.Wait. -func (m *HookManager) Wait() { - m.runner.Wait() -} - -// Stop implements StateManager.Stop. -func (m *HookManager) Stop() { - m.runner.Stop() -} - -// Context obtains the context for the given context ID. -func (m *HookManager) Context(contextID string) (*Context, error) { - m.contextsMutex.RLock() - defer m.contextsMutex.RUnlock() - - context, ok := m.contexts[contextID] - if !ok { - return nil, fmt.Errorf("no context for ID: %q", contextID) - } - - return context, nil -} - -func hookSetup(task *state.Task) (*HookSetup, *snapstate.SnapState, error) { - var hooksup HookSetup - err := task.Get("hook-setup", &hooksup) - if err != nil { - return nil, nil, fmt.Errorf("cannot extract hook setup from task: %s", err) - } - - var snapst snapstate.SnapState - err = snapstate.Get(task.State(), hooksup.Snap, &snapst) - if err == state.ErrNoState { - return nil, nil, fmt.Errorf("cannot find %q snap", hooksup.Snap) - } - if err != nil { - return nil, nil, fmt.Errorf("cannot handle %q snap: %v", hooksup.Snap, err) - } - - return &hooksup, &snapst, nil -} - -// doRunHook actually runs the hook that was requested. -// -// Note that this method is synchronous, as the task is already running in a -// goroutine. -func (m *HookManager) doRunHook(task *state.Task, tomb *tomb.Tomb) error { - task.State().Lock() - hooksup, snapst, err := hookSetup(task) - task.State().Unlock() - if err != nil { - return err - } - - info, err := snapst.CurrentInfo() - if err != nil { - return fmt.Errorf("cannot read %q snap details: %v", hooksup.Snap, err) - } - - hookExists := info.Hooks[hooksup.Hook] != nil - if !hookExists && !hooksup.Optional { - return fmt.Errorf("snap %q has no %q hook", hooksup.Snap, hooksup.Hook) - } - - context, err := NewContext(task, hooksup, nil) - if err != nil { - return err - } - - // Obtain a handler for this hook. The repository returns a list since it's - // possible for regular expressions to overlap, but multiple handlers is an - // error (as is no handler). - handlers := m.repository.generateHandlers(context) - handlersCount := len(handlers) - if handlersCount == 0 { - return fmt.Errorf("internal error: no registered handlers for hook %q", hooksup.Hook) - } - if handlersCount > 1 { - return fmt.Errorf("internal error: %d handlers registered for hook %q, expected 1", handlersCount, hooksup.Hook) - } - - context.handler = handlers[0] | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/hookstate/hookmgr_test.go ^ |
| @@ -1,460 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package hookstate_test - -import ( - "encoding/json" - "os" - "path/filepath" - "regexp" - "testing" - - . "gopkg.in/check.v1" - - "github.com/snapcore/snapd/dirs" - "github.com/snapcore/snapd/overlord/hookstate" - "github.com/snapcore/snapd/overlord/hookstate/hooktest" - "github.com/snapcore/snapd/overlord/snapstate" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/snap" - "github.com/snapcore/snapd/snap/snaptest" - "github.com/snapcore/snapd/testutil" -) - -func TestHookManager(t *testing.T) { TestingT(t) } - -type hookManagerSuite struct { - state *state.State - manager *hookstate.HookManager - context *hookstate.Context - mockHandler *hooktest.MockHandler - task *state.Task - change *state.Change - command *testutil.MockCmd -} - -var _ = Suite(&hookManagerSuite{}) - -var snapYaml = ` -name: test-snap -version: 1.0 -hooks: - configure: - prepare-device: -` -var snapContents = "" - -func (s *hookManagerSuite) SetUpTest(c *C) { - dirs.SetRootDir(c.MkDir()) - s.state = state.New(nil) - manager, err := hookstate.Manager(s.state) - c.Assert(err, IsNil) - s.manager = manager - - hooksup := &hookstate.HookSetup{ - Snap: "test-snap", - Hook: "configure", - Revision: snap.R(1), - } - - initialContext := map[string]interface{}{ - "test-key": "test-value", - } - - s.state.Lock() - s.task = hookstate.HookTask(s.state, "test summary", hooksup, initialContext) - c.Assert(s.task, NotNil, Commentf("Expected HookTask to return a task")) - - s.change = s.state.NewChange("kind", "summary") - s.change.AddTask(s.task) - - sideInfo := &snap.SideInfo{RealName: "test-snap", SnapID: "some-snap-id", Revision: snap.R(1)} - snaptest.MockSnap(c, snapYaml, snapContents, sideInfo) - snapstate.Set(s.state, "test-snap", &snapstate.SnapState{ - Active: true, - Sequence: []*snap.SideInfo{sideInfo}, - Current: snap.R(1), - }) - s.state.Unlock() - - s.command = testutil.MockCommand(c, "snap", "") - - s.context = nil - s.mockHandler = hooktest.NewMockHandler() - s.manager.Register(regexp.MustCompile("configure"), func(context *hookstate.Context) hookstate.Handler { - s.context = context - return s.mockHandler - }) -} - -func (s *hookManagerSuite) TearDownTest(c *C) { - s.manager.Stop() - dirs.SetRootDir("") -} - -func (s *hookManagerSuite) TestSmoke(c *C) { - s.manager.Ensure() - s.manager.Wait() -} - -func (s *hookManagerSuite) TestHookSetupJsonMarshal(c *C) { - hookSetup := &hookstate.HookSetup{Snap: "snap-name", Revision: snap.R(1), Hook: "hook-name"} - out, err := json.Marshal(hookSetup) - c.Assert(err, IsNil) - c.Check(string(out), Equals, "{\"snap\":\"snap-name\",\"revision\":\"1\",\"hook\":\"hook-name\"}") -} - -func (s *hookManagerSuite) TestHookSetupJsonUnmarshal(c *C) { - out, err := json.Marshal(hookstate.HookSetup{Snap: "snap-name", Revision: snap.R(1), Hook: "hook-name"}) - c.Assert(err, IsNil) - - var setup hookstate.HookSetup - err = json.Unmarshal(out, &setup) - c.Assert(err, IsNil) - c.Check(setup.Snap, Equals, "snap-name") - c.Check(setup.Revision, Equals, snap.R(1)) - c.Check(setup.Hook, Equals, "hook-name") -} - -func (s *hookManagerSuite) TestHookTask(c *C) { - s.state.Lock() - defer s.state.Unlock() - - hooksup := &hookstate.HookSetup{ - Snap: "test-snap", - Hook: "configure", - Revision: snap.R(1), - } - - task := hookstate.HookTask(s.state, "test summary", hooksup, nil) - c.Check(task.Kind(), Equals, "run-hook") - - var setup hookstate.HookSetup - err := task.Get("hook-setup", &setup) - c.Check(err, IsNil) - c.Check(setup.Snap, Equals, "test-snap") - c.Check(setup.Revision, Equals, snap.R(1)) - c.Check(setup.Hook, Equals, "configure") -} - -func (s *hookManagerSuite) TestHookTaskEnsure(c *C) { - s.manager.Ensure() - s.manager.Wait() - - s.state.Lock() - defer s.state.Unlock() - - c.Assert(s.context, NotNil, Commentf("Expected handler generator to be called with a valid context")) - c.Check(s.context.SnapName(), Equals, "test-snap") - c.Check(s.context.SnapRevision(), Equals, snap.R(1)) - c.Check(s.context.HookName(), Equals, "configure") - - c.Check(s.command.Calls(), DeepEquals, [][]string{{ - "snap", "run", "--hook", "configure", "-r", "1", "test-snap", - }}) - - c.Check(s.mockHandler.BeforeCalled, Equals, true) - c.Check(s.mockHandler.DoneCalled, Equals, true) - c.Check(s.mockHandler.ErrorCalled, Equals, false) - - c.Check(s.task.Kind(), Equals, "run-hook") - c.Check(s.task.Status(), Equals, state.DoneStatus) - c.Check(s.change.Status(), Equals, state.DoneStatus) -} - -func (s *hookManagerSuite) TestHookTaskInitializesContext(c *C) { - s.manager.Ensure() - s.manager.Wait() - - var value string - c.Assert(s.context, NotNil, Commentf("Expected handler generator to be called with a valid context")) - s.context.Lock() - defer s.context.Unlock() - c.Check(s.context.Get("test-key", &value), IsNil, Commentf("Expected context to be initialized")) - c.Check(value, Equals, "test-value") -} - -func (s *hookManagerSuite) TestHookTaskHandlesHookError(c *C) { - // Force the snap command to exit 1, and print something to stderr - s.command = testutil.MockCommand( - c, "snap", ">&2 echo 'hook failed at user request'; exit 1") - - s.manager.Ensure() | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/hookstate/hooktest ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/ifacestate ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/ifacestate/handlers.go ^ |
| @@ -1,557 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package ifacestate - -import ( - "fmt" - "sort" - "time" - - "gopkg.in/tomb.v2" - - "github.com/snapcore/snapd/asserts" - "github.com/snapcore/snapd/interfaces" - "github.com/snapcore/snapd/interfaces/policy" - "github.com/snapcore/snapd/overlord/assertstate" - "github.com/snapcore/snapd/overlord/snapstate" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/release" - "github.com/snapcore/snapd/snap" -) - -// confinementOptions returns interfaces.ConfinementOptions from snapstate.Flags. -func confinementOptions(flags snapstate.Flags) interfaces.ConfinementOptions { - return interfaces.ConfinementOptions{ - DevMode: flags.DevMode, - JailMode: flags.JailMode, - Classic: flags.Classic, - } -} - -func (m *InterfaceManager) setupAffectedSnaps(task *state.Task, affectingSnap string, affectedSnaps []string) error { - st := task.State() - - // Setup security of the affected snaps. - for _, affectedSnapName := range affectedSnaps { - // the snap that triggered the change needs to be skipped - if affectedSnapName == affectingSnap { - continue - } - var snapst snapstate.SnapState - if err := snapstate.Get(st, affectedSnapName, &snapst); err != nil { - task.Errorf("skipping security profiles setup for snap %q when handling snap %q: %v", affectedSnapName, affectingSnap, err) - continue - } - affectedSnapInfo, err := snapst.CurrentInfo() - if err != nil { - return err - } - snap.AddImplicitSlots(affectedSnapInfo) - opts := confinementOptions(snapst.Flags) - if err := m.setupSnapSecurity(task, affectedSnapInfo, opts); err != nil { - return err - } - } - return nil -} - -func (m *InterfaceManager) doSetupProfiles(task *state.Task, tomb *tomb.Tomb) error { - task.State().Lock() - defer task.State().Unlock() - - // Get snap.Info from bits handed by the snap manager. - snapsup, err := snapstate.TaskSnapSetup(task) - if err != nil { - return err - } - - snapInfo, err := snap.ReadInfo(snapsup.Name(), snapsup.SideInfo) - if err != nil { - return err - } - - // TODO: this whole bit seems maybe that it should belong (largely) to a snapstate helper - var corePhase2 bool - if err := task.Get("core-phase-2", &corePhase2); err != nil && err != state.ErrNoState { - return err - } - if corePhase2 { - if snapInfo.Type != snap.TypeOS { - // not core, nothing to do - return nil - } - if task.State().Restarting() { - // don't continue until we are in the restarted snapd - task.Logf("Waiting for restart...") - return &state.Retry{} - } - // if not on classic check there was no rollback - if !release.OnClassic { - name, rev, err := snapstate.CurrentBootNameAndRevision(snap.TypeOS) - if err == snapstate.ErrBootNameAndRevisionAgain { - return &state.Retry{After: 5 * time.Second} - } - if err != nil { - return err - } - if snapsup.Name() != name || snapInfo.Revision != rev { - return fmt.Errorf("cannot finish core installation, there was a rollback across reboot") - } - } - } - - opts := confinementOptions(snapsup.Flags) - return m.setupProfilesForSnap(task, tomb, snapInfo, opts) -} - -func (m *InterfaceManager) setupProfilesForSnap(task *state.Task, _ *tomb.Tomb, snapInfo *snap.Info, opts interfaces.ConfinementOptions) error { - snap.AddImplicitSlots(snapInfo) - snapName := snapInfo.Name() - - // The snap may have been updated so perform the following operation to - // ensure that we are always working on the correct state: - // - // - disconnect all connections to/from the given snap - // - remembering the snaps that were affected by this operation - // - remove the (old) snap from the interfaces repository - // - add the (new) snap to the interfaces repository - // - restore connections based on what is kept in the state - // - if a connection cannot be restored then remove it from the state - // - setup the security of all the affected snaps - disconnectedSnaps, err := m.repo.DisconnectSnap(snapName) - if err != nil { - return err - } - // XXX: what about snap renames? We should remove the old name (or switch - // to IDs in the interfaces repository) - if err := m.repo.RemoveSnap(snapName); err != nil { - return err - } - if err := m.repo.AddSnap(snapInfo); err != nil { - if _, ok := err.(*interfaces.BadInterfacesError); ok { - task.Logf("%s", err) - } else { - return err - } - } - if err := m.reloadConnections(snapName); err != nil { - return err - } - // FIXME: here we should not reconnect auto-connect plug/slot - // pairs that were explicitly disconnected by the user - connectedSnaps, err := m.autoConnect(task, snapName, nil) - if err != nil { - return err - } - if err := m.setupSnapSecurity(task, snapInfo, opts); err != nil { - return err - } - affectedSet := make(map[string]bool) - for _, name := range disconnectedSnaps { - affectedSet[name] = true - } - for _, name := range connectedSnaps { - affectedSet[name] = true - } - // The principal snap was already handled above. - delete(affectedSet, snapInfo.Name()) - affectedSnaps := make([]string, 0, len(affectedSet)) - for name := range affectedSet { - affectedSnaps = append(affectedSnaps, name) - } - sort.Strings(affectedSnaps) - return m.setupAffectedSnaps(task, snapName, affectedSnaps) -} - -func (m *InterfaceManager) doRemoveProfiles(task *state.Task, tomb *tomb.Tomb) error { - st := task.State() - st.Lock() - defer st.Unlock() - - // Get SnapSetup for this snap. This is gives us the name of the snap. - snapSetup, err := snapstate.TaskSnapSetup(task) - if err != nil { - return err - } - snapName := snapSetup.Name() - - return m.removeProfilesForSnap(task, tomb, snapName) -} - -func (m *InterfaceManager) removeProfilesForSnap(task *state.Task, _ *tomb.Tomb, snapName string) error { - // Disconnect the snap entirely. | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/patch ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/snapstate ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/snapstate/backend ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/snapstate/backend_test.go ^ |
| @@ -1,542 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package snapstate_test - -import ( - "errors" - "fmt" - - "golang.org/x/net/context" - - "github.com/snapcore/snapd/asserts" - "github.com/snapcore/snapd/overlord/auth" - "github.com/snapcore/snapd/overlord/snapstate" - "github.com/snapcore/snapd/overlord/snapstate/backend" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/progress" - "github.com/snapcore/snapd/snap" - "github.com/snapcore/snapd/store" -) - -type fakeOp struct { - op string - - name string - channel string - revno snap.Revision - sinfo snap.SideInfo - stype snap.Type - cand store.RefreshCandidate - - old string - - aliases []*backend.Alias - rmAliases []*backend.Alias -} - -type fakeOps []fakeOp - -func (ops fakeOps) Ops() []string { - opsOps := make([]string, len(ops)) - for i, op := range ops { - opsOps[i] = op.op - } - - return opsOps -} - -func (ops fakeOps) Count(op string) int { - n := 0 - for i := range ops { - if ops[i].op == op { - n++ - } - } - return n -} - -func (ops fakeOps) First(op string) *fakeOp { - for i := range ops { - if ops[i].op == op { - return &ops[i] - } - } - - return nil -} - -type fakeDownload struct { - name string - macaroon string -} - -type fakeStore struct { - downloads []fakeDownload - fakeBackend *fakeSnappyBackend - fakeCurrentProgress int - fakeTotalProgress int - state *state.State -} - -func (f *fakeStore) pokeStateLock() { - // the store should be called without the state lock held. Try - // to acquire it. - f.state.Lock() - f.state.Unlock() -} - -func (f *fakeStore) SnapInfo(spec store.SnapSpec, user *auth.UserState) (*snap.Info, error) { - f.pokeStateLock() - - if spec.Revision.Unset() { - spec.Revision = snap.R(11) - if spec.Channel == "channel-for-7" { - spec.Revision.N = 7 - } - } - - confinement := snap.StrictConfinement - switch spec.Channel { - case "channel-for-devmode": - confinement = snap.DevModeConfinement - case "channel-for-classic": - confinement = snap.ClassicConfinement - } - - typ := snap.TypeApp - if spec.Name == "some-core" { - typ = snap.TypeOS - } - - info := &snap.Info{ - Architectures: []string{"all"}, - SideInfo: snap.SideInfo{ - RealName: spec.Name, - Channel: spec.Channel, - SnapID: "snapIDsnapidsnapidsnapidsnapidsn", - Revision: spec.Revision, - }, - Version: spec.Name, - DownloadInfo: snap.DownloadInfo{ - DownloadURL: "https://some-server.com/some/path.snap", - }, - Confinement: confinement, - Type: typ, - } - f.fakeBackend.ops = append(f.fakeBackend.ops, fakeOp{op: "storesvc-snap", name: spec.Name, revno: spec.Revision}) - - return info, nil -} - -func (f *fakeStore) Find(search *store.Search, user *auth.UserState) ([]*snap.Info, error) { - panic("Find called") -} - -func (f *fakeStore) ListRefresh(cands []*store.RefreshCandidate, _ *auth.UserState) ([]*snap.Info, error) { - f.pokeStateLock() - - if len(cands) == 0 { - return nil, nil - } - if len(cands) > 2 { - panic("ListRefresh unexpectedly called with more than two candidates") - } - - var res []*snap.Info - for _, cand := range cands { - snapID := cand.SnapID - - if snapID == "" || snapID == "other-snap-id" { - continue - } - - if snapID == "fakestore-please-error-on-refresh" { - return nil, fmt.Errorf("failing as requested") - } - - var name string - if snapID == "some-snap-id" { - name = "some-snap" - } else { - panic(fmt.Sprintf("ListRefresh: unknown snap-id: %s", snapID)) - } - - revno := snap.R(11) - confinement := snap.StrictConfinement - switch cand.Channel { - case "channel-for-7": - revno = snap.R(7) - case "channel-for-classic": - confinement = snap.ClassicConfinement - case "channel-for-devmode": - confinement = snap.DevModeConfinement - } - - info := &snap.Info{ - SideInfo: snap.SideInfo{ - RealName: name, - Channel: cand.Channel, - SnapID: cand.SnapID, - Revision: revno, - }, - Version: name, | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/snapstate/booted.go ^ |
| @@ -1,169 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2014-2015 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package snapstate - -import ( - "errors" - "fmt" - "strings" - - "github.com/snapcore/snapd/logger" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/partition" - "github.com/snapcore/snapd/release" - "github.com/snapcore/snapd/snap" -) - -func nameAndRevnoFromSnap(sn string) (string, snap.Revision, error) { - l := strings.Split(sn, "_") - if len(l) < 2 { - return "", snap.Revision{}, fmt.Errorf("input %q has invalid format (not enough '_')", sn) - } - name := l[0] - revnoNSuffix := l[1] - rev, err := snap.ParseRevision(strings.Split(revnoNSuffix, ".snap")[0]) - if err != nil { - return "", snap.Revision{}, err - } - return name, rev, nil -} - -// UpdateBootRevisions synchronizes the active kernel and OS snap versions -// with the versions that actually booted. This is needed because a -// system may install "os=v2" but that fails to boot. The bootloader -// fallback logic will revert to "os=v1" but on the filesystem snappy -// still has the "active" version set to "v2" which is -// misleading. This code will check what kernel/os booted and set -// those versions active.To do this it creates a Change and kicks -// start it directly. -func UpdateBootRevisions(st *state.State) error { - const errorPrefix = "cannot update revisions after boot changes: " - - if release.OnClassic { - return nil - } - - // nothing to check if there's no kernel - _, err := KernelInfo(st) - if err == state.ErrNoState { - return nil - } - if err != nil { - return fmt.Errorf(errorPrefix+"%s", err) - } - - bootloader, err := partition.FindBootloader() - if err != nil { - return fmt.Errorf(errorPrefix+"%s", err) - } - - m, err := bootloader.GetBootVars("snap_kernel", "snap_core") - if err != nil { - return fmt.Errorf(errorPrefix+"%s", err) - } - - var tsAll []*state.TaskSet - for _, snapNameAndRevno := range []string{m["snap_kernel"], m["snap_core"]} { - name, rev, err := nameAndRevnoFromSnap(snapNameAndRevno) - if err != nil { - logger.Noticef("cannot parse %q: %s", snapNameAndRevno, err) - continue - } - info, err := CurrentInfo(st, name) - if err != nil { - logger.Noticef("cannot get info for %q: %s", name, err) - continue - } - if rev != info.SideInfo.Revision { - // FIXME: check that there is no task - // for this already in progress - ts, err := RevertToRevision(st, name, rev, Flags{}) - if err != nil { - return err - } - tsAll = append(tsAll, ts) - } - } - - if len(tsAll) == 0 { - return nil - } - - msg := fmt.Sprintf("Update kernel and core snap revisions") - chg := st.NewChange("update-revisions", msg) - for _, ts := range tsAll { - chg.AddAll(ts) - } - st.EnsureBefore(0) - - return nil -} - -var ErrBootNameAndRevisionAgain = errors.New("boot revision not yet established") - -// CurrentBootNameAndRevision returns the currently set name and -// revision for boot for the given type of snap, which can be core or -// kernel. Returns ErrBootNameAndRevisionAgain if the value are not -// temporarily established. -func CurrentBootNameAndRevision(typ snap.Type) (name string, revision snap.Revision, err error) { - var kind string - var bootVar string - - switch typ { - case snap.TypeKernel: - kind = "kernel" - bootVar = "snap_kernel" - case snap.TypeOS: - kind = "core" - bootVar = "snap_core" - default: - return "", snap.Revision{}, fmt.Errorf("cannot find boot revision for anything but core and kernel") - } - - errorPrefix := fmt.Sprintf("cannot retrieve boot revision for %s: ", kind) - if release.OnClassic { - return "", snap.Revision{}, fmt.Errorf(errorPrefix + "classic system") - } - - bootloader, err := partition.FindBootloader() - if err != nil { - return "", snap.Revision{}, fmt.Errorf(errorPrefix+"%s", err) - } - - m, err := bootloader.GetBootVars(bootVar, "snap_mode") - if err != nil { - return "", snap.Revision{}, fmt.Errorf(errorPrefix+"%s", err) - } - - if m["snap_mode"] != "" { - return "", snap.Revision{}, ErrBootNameAndRevisionAgain - } - - snapNameAndRevno := m[bootVar] - if snapNameAndRevno == "" { - return "", snap.Revision{}, fmt.Errorf(errorPrefix + "unset") - } - name, rev, err := nameAndRevnoFromSnap(snapNameAndRevno) - if err != nil { - return "", snap.Revision{}, fmt.Errorf(errorPrefix+"%s", err) - } - - return name, rev, nil -} | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/snapstate/link_snap_test.go ^ |
| @@ -1,314 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package snapstate_test - -import ( - "time" - - . "gopkg.in/check.v1" - - "github.com/snapcore/snapd/overlord/snapstate" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/release" - "github.com/snapcore/snapd/snap" -) - -type linkSnapSuite struct { - state *state.State - snapmgr *snapstate.SnapManager - - fakeBackend *fakeSnappyBackend - - stateBackend *witnessRestartReqStateBackend - - reset func() -} - -var _ = Suite(&linkSnapSuite{}) - -type witnessRestartReqStateBackend struct { - restartRequested bool -} - -func (b *witnessRestartReqStateBackend) Checkpoint([]byte) error { - return nil -} - -func (b *witnessRestartReqStateBackend) RequestRestart(t state.RestartType) { - b.restartRequested = true -} - -func (b *witnessRestartReqStateBackend) EnsureBefore(time.Duration) {} - -func (s *linkSnapSuite) SetUpTest(c *C) { - s.stateBackend = &witnessRestartReqStateBackend{} - s.fakeBackend = &fakeSnappyBackend{} - s.state = state.New(s.stateBackend) - - var err error - s.snapmgr, err = snapstate.Manager(s.state) - c.Assert(err, IsNil) - s.snapmgr.AddForeignTaskHandlers(s.fakeBackend) - - snapstate.SetSnapManagerBackend(s.snapmgr, s.fakeBackend) - - s.reset = snapstate.MockReadInfo(s.fakeBackend.ReadInfo) -} - -func (s *linkSnapSuite) TearDownTest(c *C) { - s.reset() -} - -func (s *linkSnapSuite) TestDoLinkSnapSuccess(c *C) { - s.state.Lock() - t := s.state.NewTask("link-snap", "test") - t.Set("snap-setup", &snapstate.SnapSetup{ - SideInfo: &snap.SideInfo{ - RealName: "foo", - Revision: snap.R(33), - }, - Channel: "beta", - }) - s.state.NewChange("dummy", "...").AddTask(t) - - s.state.Unlock() - - s.snapmgr.Ensure() - s.snapmgr.Wait() - - s.state.Lock() - defer s.state.Unlock() - var snapst snapstate.SnapState - err := snapstate.Get(s.state, "foo", &snapst) - c.Assert(err, IsNil) - - typ, err := snapst.Type() - c.Check(err, IsNil) - c.Check(typ, Equals, snap.TypeApp) - - c.Check(snapst.Active, Equals, true) - c.Check(snapst.Sequence, HasLen, 1) - c.Check(snapst.Current, Equals, snap.R(33)) - c.Check(snapst.Channel, Equals, "beta") - c.Check(t.Status(), Equals, state.DoneStatus) - c.Check(s.stateBackend.restartRequested, Equals, false) -} - -func (s *linkSnapSuite) TestDoUndoLinkSnap(c *C) { - s.state.Lock() - defer s.state.Unlock() - si := &snap.SideInfo{ - RealName: "foo", - Revision: snap.R(33), - } - t := s.state.NewTask("link-snap", "test") - t.Set("snap-setup", &snapstate.SnapSetup{ - SideInfo: si, - Channel: "beta", - }) - chg := s.state.NewChange("dummy", "...") - chg.AddTask(t) - - terr := s.state.NewTask("error-trigger", "provoking total undo") - terr.WaitFor(t) - chg.AddTask(terr) - - s.state.Unlock() - - for i := 0; i < 3; i++ { - s.snapmgr.Ensure() - s.snapmgr.Wait() - } - - s.state.Lock() - var snapst snapstate.SnapState - err := snapstate.Get(s.state, "foo", &snapst) - c.Assert(err, Equals, state.ErrNoState) - c.Check(t.Status(), Equals, state.UndoneStatus) -} - -func (s *linkSnapSuite) TestDoLinkSnapTryToCleanupOnError(c *C) { - s.state.Lock() - defer s.state.Unlock() - si := &snap.SideInfo{ - RealName: "foo", - Revision: snap.R(35), - } - t := s.state.NewTask("link-snap", "test") - t.Set("snap-setup", &snapstate.SnapSetup{ - SideInfo: si, - Channel: "beta", - }) - - s.fakeBackend.linkSnapFailTrigger = "/snap/foo/35" - s.state.NewChange("dummy", "...").AddTask(t) - s.state.Unlock() - - s.snapmgr.Ensure() - s.snapmgr.Wait() - - s.state.Lock() - - // state as expected - var snapst snapstate.SnapState - err := snapstate.Get(s.state, "foo", &snapst) - c.Assert(err, Equals, state.ErrNoState) - - // tried to cleanup - c.Check(s.fakeBackend.ops, DeepEquals, fakeOps{ - { - op: "candidate", - sinfo: *si, - }, - { - op: "link-snap.failed", - name: "/snap/foo/35", - }, - { - op: "unlink-snap", - name: "/snap/foo/35", - }, - }) -} - -func (s *linkSnapSuite) TestDoLinkSnapSuccessCoreRestarts(c *C) { - restore := release.MockOnClassic(true) - defer restore() - - s.state.Lock() - si := &snap.SideInfo{ - RealName: "core", - Revision: snap.R(33), - } | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/snapstate/snapmgr.go ^ |
| @@ -1,1448 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -// Package snapstate implements the manager and state aspects responsible for the installation and removal of snaps. -package snapstate - -import ( - "encoding/json" - "errors" - "fmt" - "math/rand" - "os" - "strconv" - "strings" - "time" - - "gopkg.in/tomb.v2" - - "github.com/snapcore/snapd/boot" - "github.com/snapcore/snapd/errtracker" - "github.com/snapcore/snapd/i18n" - "github.com/snapcore/snapd/logger" - "github.com/snapcore/snapd/osutil" - "github.com/snapcore/snapd/overlord/auth" - "github.com/snapcore/snapd/overlord/configstate/config" - "github.com/snapcore/snapd/overlord/snapstate/backend" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/release" - "github.com/snapcore/snapd/snap" - "github.com/snapcore/snapd/store" - "github.com/snapcore/snapd/strutil" -) - -// FIXME: what we actually want is a schedule spec that is user configurable -// like: -// """ -// tue -// tue,thu -// tue-thu -// 9:00 -// 9:00,15:00 -// 9:00-15:00 -// tue,thu@9:00-15:00 -// tue@9:00;thu@15:00 -// mon,wed-fri@9:00-11:00,13:00-15:00 -// """ -// where 9:00 is implicitly taken as 9:00-10:00 -// and tue is implicitly taken as tue@<our current setting?> -// -// it is controlled via: -// $ snap refresh --schedule=<time spec> -// which is a shorthand for -// $ snap set core refresh.schedule=<time spec> -// and we need to validate the time-spec, ideally internally by -// intercepting the set call -var ( - minRefreshInterval = 4 * time.Hour - - // random interval on top of the minmum time between refreshes - defaultRefreshRandomness = 4 * time.Hour -) - -var ( - errtrackerReport = errtracker.Report -) - -// SnapManager is responsible for the installation and removal of snaps. -type SnapManager struct { - state *state.State - backend managerBackend - - refreshRandomness time.Duration - lastRefreshAttempt time.Time - - lastUbuntuCoreTransitionAttempt time.Time - - runner *state.TaskRunner -} - -// SnapSetup holds the necessary snap details to perform most snap manager tasks. -type SnapSetup struct { - // FIXME: rename to RequestedChannel to convey the meaning better - Channel string `json:"channel,omitempty"` - UserID int `json:"user-id,omitempty"` - - Flags - - SnapPath string `json:"snap-path,omitempty"` - - DownloadInfo *snap.DownloadInfo `json:"download-info,omitempty"` - SideInfo *snap.SideInfo `json:"side-info,omitempty"` -} - -func (snapsup *SnapSetup) Name() string { - if snapsup.SideInfo.RealName == "" { - panic("SnapSetup.SideInfo.RealName not set") - } - return snapsup.SideInfo.RealName -} - -func (snapsup *SnapSetup) Revision() snap.Revision { - return snapsup.SideInfo.Revision -} - -func (snapsup *SnapSetup) placeInfo() snap.PlaceInfo { - return snap.MinimalPlaceInfo(snapsup.Name(), snapsup.Revision()) -} - -func (snapsup *SnapSetup) MountDir() string { - return snap.MountDir(snapsup.Name(), snapsup.Revision()) -} - -func (snapsup *SnapSetup) MountFile() string { - return snap.MountFile(snapsup.Name(), snapsup.Revision()) -} - -// SnapState holds the state for a snap installed in the system. -type SnapState struct { - SnapType string `json:"type"` // Use Type and SetType - Sequence []*snap.SideInfo `json:"sequence"` - Active bool `json:"active,omitempty"` - // Current indicates the current active revision if Active is - // true or the last active revision if Active is false - // (usually while a snap is being operated on or disabled) - Current snap.Revision `json:"current"` - Channel string `json:"channel,omitempty"` - Flags -} - -// Type returns the type of the snap or an error. -// Should never error if Current is not nil. -func (snapst *SnapState) Type() (snap.Type, error) { - if snapst.SnapType == "" { - return snap.Type(""), fmt.Errorf("snap type unset") - } - return snap.Type(snapst.SnapType), nil -} - -// SetType records the type of the snap. -func (snapst *SnapState) SetType(typ snap.Type) { - snapst.SnapType = string(typ) -} - -// HasCurrent returns whether snapst.Current is set. -func (snapst *SnapState) HasCurrent() bool { - if snapst.Current.Unset() { - if len(snapst.Sequence) > 0 { - panic(fmt.Sprintf("snapst.Current and snapst.Sequence out of sync: %#v %#v", snapst.Current, snapst.Sequence)) - } - - return false - } - return true -} - -// LocalRevision returns the "latest" local revision. Local revisions -// start at -1 and are counted down. -func (snapst *SnapState) LocalRevision() snap.Revision { - var local snap.Revision - for _, si := range snapst.Sequence { - if si.Revision.Local() && si.Revision.N < local.N { - local = si.Revision - } - } - return local -} - -// TODO: unexport CurrentSideInfo and HasCurrent? - -// CurrentSideInfo returns the side info for the revision indicated by snapst.Current in the snap revision sequence if there is one. -func (snapst *SnapState) CurrentSideInfo() *snap.SideInfo { - if !snapst.HasCurrent() { - return nil - } - if idx := snapst.LastIndex(snapst.Current); idx >= 0 { - return snapst.Sequence[idx] - } - panic("cannot find snapst.Current in the snapst.Sequence") -} - -func (snapst *SnapState) previousSideInfo() *snap.SideInfo { - n := len(snapst.Sequence) - if n < 2 { | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/snapstate/snapmgr_test.go ^ |
| @@ -1,6000 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -package snapstate_test - -import ( - "encoding/json" - "errors" - "fmt" - "io/ioutil" - "os" - "path/filepath" - "sort" - "testing" - "time" - - . "gopkg.in/check.v1" - - "github.com/snapcore/snapd/dirs" - "github.com/snapcore/snapd/overlord/auth" - "github.com/snapcore/snapd/overlord/configstate/config" - "github.com/snapcore/snapd/overlord/snapstate" - "github.com/snapcore/snapd/overlord/snapstate/backend" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/release" - "github.com/snapcore/snapd/snap" - "github.com/snapcore/snapd/snap/snaptest" - "github.com/snapcore/snapd/store" - - // So it registers Configure. - _ "github.com/snapcore/snapd/overlord/configstate" -) - -func TestSnapManager(t *testing.T) { TestingT(t) } - -type snapmgrTestSuite struct { - state *state.State - snapmgr *snapstate.SnapManager - - fakeBackend *fakeSnappyBackend - fakeStore *fakeStore - - user *auth.UserState - - reset func() -} - -func (s *snapmgrTestSuite) settle() { - // FIXME: use the real settle here - for i := 0; i < 50; i++ { - s.snapmgr.Ensure() - s.snapmgr.Wait() - } -} - -var _ = Suite(&snapmgrTestSuite{}) - -func (s *snapmgrTestSuite) SetUpTest(c *C) { - s.fakeBackend = &fakeSnappyBackend{} - s.state = state.New(nil) - s.fakeStore = &fakeStore{ - fakeCurrentProgress: 75, - fakeTotalProgress: 100, - fakeBackend: s.fakeBackend, - state: s.state, - } - - var err error - s.snapmgr, err = snapstate.Manager(s.state) - c.Assert(err, IsNil) - s.snapmgr.AddForeignTaskHandlers(s.fakeBackend) - - snapstate.SetSnapManagerBackend(s.snapmgr, s.fakeBackend) - - restore1 := snapstate.MockReadInfo(s.fakeBackend.ReadInfo) - restore2 := snapstate.MockOpenSnapFile(s.fakeBackend.OpenSnapFile) - - s.reset = func() { - restore2() - restore1() - } - - s.state.Lock() - snapstate.ReplaceStore(s.state, s.fakeStore) - s.user, err = auth.NewUser(s.state, "username", "email@test.com", "macaroon", []string{"discharge"}) - c.Assert(err, IsNil) - s.state.Unlock() - - snapstate.AutoAliases = func(*state.State, *snap.Info) ([]string, error) { - return nil, nil - } -} - -func (s *snapmgrTestSuite) TearDownTest(c *C) { - snapstate.ValidateRefreshes = nil - snapstate.AutoAliases = nil - snapstate.CanAutoRefresh = nil - s.reset() -} - -func (s *snapmgrTestSuite) TestStore(c *C) { - s.state.Lock() - defer s.state.Unlock() - - sto := &store.Store{} - snapstate.ReplaceStore(s.state, sto) - store1 := snapstate.Store(s.state) - c.Check(store1, Equals, sto) - - // cached - store2 := snapstate.Store(s.state) - c.Check(store2, Equals, sto) -} - -const ( - unlinkBefore = 1 << iota - cleanupAfter - maybeCore -) - -func taskKinds(tasks []*state.Task) []string { - kinds := make([]string, len(tasks)) - for i, task := range tasks { - kinds[i] = task.Kind() - } - return kinds -} - -func verifyInstallUpdateTasks(c *C, opts, discards int, ts *state.TaskSet, st *state.State) { - kinds := taskKinds(ts.Tasks()) - - expected := []string{ - "download-snap", - "validate-snap", - "mount-snap", - } - if opts&unlinkBefore != 0 { - expected = append(expected, - "stop-snap-services", - "remove-aliases", - "unlink-current-snap", - ) - } - expected = append(expected, - "copy-snap-data", - "setup-profiles", - "link-snap", - ) - if opts&maybeCore != 0 { - expected = append(expected, "setup-profiles") - } - expected = append(expected, - "set-auto-aliases", - "setup-aliases", - "start-snap-services", - ) - for i := 0; i < discards; i++ { - expected = append(expected, - "clear-snap", - "discard-snap", - ) - } - if opts&cleanupAfter != 0 { - expected = append(expected, - "cleanup", - ) - } - expected = append(expected, - "run-hook", - ) - - c.Assert(kinds, DeepEquals, expected) -} - -func verifyRemoveTasks(c *C, ts *state.TaskSet) { - c.Assert(taskKinds(ts.Tasks()), DeepEquals, []string{ - "stop-snap-services", - "remove-aliases", - "unlink-snap", - "remove-profiles", - "clear-snap", - "discard-snap", - "clear-aliases", | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/snapstate/snapstate.go ^ |
| @@ -1,1465 +0,0 @@ -// -*- Mode: Go; indent-tabs-mode: t -*- - -/* - * Copyright (C) 2016 Canonical Ltd - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -// Package snapstate implements the manager and state aspects responsible for the installation and removal of snaps. -package snapstate - -import ( - "encoding/json" - "fmt" - "reflect" - "sort" - - "github.com/snapcore/snapd/boot" - "github.com/snapcore/snapd/i18n/dumb" - "github.com/snapcore/snapd/logger" - "github.com/snapcore/snapd/overlord/auth" - "github.com/snapcore/snapd/overlord/state" - "github.com/snapcore/snapd/release" - "github.com/snapcore/snapd/snap" - "github.com/snapcore/snapd/store" -) - -// control flags for doInstall -const ( - maybeCore = 1 << iota -) - -func needsMaybeCore(typ snap.Type) int { - if typ == snap.TypeOS { - return maybeCore - } - return 0 -} - -func doInstall(st *state.State, snapst *SnapState, snapsup *SnapSetup, flags int) (*state.TaskSet, error) { - if snapsup.Flags.Classic && !release.OnClassic { - return nil, fmt.Errorf("classic confinement is only supported on classic systems") - } - if !snapst.HasCurrent() { // install? - // check that the snap command namespace doesn't conflict with an enabled alias - if err := checkSnapAliasConflict(st, snapsup.Name()); err != nil { - return nil, err - } - } - - if err := CheckChangeConflict(st, snapsup.Name(), snapst); err != nil { - return nil, err - } - - targetRevision := snapsup.Revision() - revisionStr := "" - if snapsup.SideInfo != nil { - revisionStr = fmt.Sprintf(" (%s)", targetRevision) - } - - // check if we already have the revision locally (alters tasks) - revisionIsLocal := snapst.LastIndex(targetRevision) >= 0 - - var prepare, prev *state.Task - fromStore := false - // if we have a local revision here we go back to that - if snapsup.SnapPath != "" || revisionIsLocal { - prepare = st.NewTask("prepare-snap", fmt.Sprintf(i18n.G("Prepare snap %q%s"), snapsup.SnapPath, revisionStr)) - } else { - fromStore = true - prepare = st.NewTask("download-snap", fmt.Sprintf(i18n.G("Download snap %q%s from channel %q"), snapsup.Name(), revisionStr, snapsup.Channel)) - } - prepare.Set("snap-setup", snapsup) - - tasks := []*state.Task{prepare} - addTask := func(t *state.Task) { - t.Set("snap-setup-task", prepare.ID()) - t.WaitFor(prev) - tasks = append(tasks, t) - } - prev = prepare - - if fromStore { - // fetch and check assertions - checkAsserts := st.NewTask("validate-snap", fmt.Sprintf(i18n.G("Fetch and check assertions for snap %q%s"), snapsup.Name(), revisionStr)) - addTask(checkAsserts) - prev = checkAsserts - } - - // mount - if !revisionIsLocal { - mount := st.NewTask("mount-snap", fmt.Sprintf(i18n.G("Mount snap %q%s"), snapsup.Name(), revisionStr)) - addTask(mount) - prev = mount - } - - if snapst.Active { - // unlink-current-snap (will stop services for copy-data) - stop := st.NewTask("stop-snap-services", fmt.Sprintf(i18n.G("Stop snap %q services"), snapsup.Name())) - addTask(stop) - prev = stop - - removeAliases := st.NewTask("remove-aliases", fmt.Sprintf(i18n.G("Remove aliases for snap %q"), snapsup.Name())) - addTask(removeAliases) - prev = removeAliases - - unlink := st.NewTask("unlink-current-snap", fmt.Sprintf(i18n.G("Make current revision for snap %q unavailable"), snapsup.Name())) - addTask(unlink) - prev = unlink - } - - // copy-data (needs stopped services by unlink) - if !snapsup.Flags.Revert { - copyData := st.NewTask("copy-snap-data", fmt.Sprintf(i18n.G("Copy snap %q data"), snapsup.Name())) - addTask(copyData) - prev = copyData - } - - // security - setupSecurity := st.NewTask("setup-profiles", fmt.Sprintf(i18n.G("Setup snap %q%s security profiles"), snapsup.Name(), revisionStr)) - addTask(setupSecurity) - prev = setupSecurity - - // finalize (wrappers+current symlink) - linkSnap := st.NewTask("link-snap", fmt.Sprintf(i18n.G("Make snap %q%s available to the system"), snapsup.Name(), revisionStr)) - addTask(linkSnap) - prev = linkSnap - - // security: phase 2, no-op unless core - if flags&maybeCore != 0 { - setupSecurityPhase2 := st.NewTask("setup-profiles", fmt.Sprintf(i18n.G("Setup snap %q%s security profiles (phase 2)"), snapsup.Name(), revisionStr)) - setupSecurityPhase2.Set("core-phase-2", true) - addTask(setupSecurityPhase2) - prev = setupSecurityPhase2 - } - - // setup aliases - setAutoAliases := st.NewTask("set-auto-aliases", fmt.Sprintf(i18n.G("Set automatic aliases for snap %q"), snapsup.Name())) - addTask(setAutoAliases) - prev = setAutoAliases - - setupAliases := st.NewTask("setup-aliases", fmt.Sprintf(i18n.G("Setup snap %q aliases"), snapsup.Name())) - addTask(setupAliases) - prev = setupAliases - - // run new serices - startSnapServices := st.NewTask("start-snap-services", fmt.Sprintf(i18n.G("Start snap %q%s services"), snapsup.Name(), revisionStr)) - addTask(startSnapServices) - prev = startSnapServices - - // Do not do that if we are reverting to a local revision - if snapst.HasCurrent() && !snapsup.Flags.Revert { - seq := snapst.Sequence - currentIndex := snapst.LastIndex(snapst.Current) - - // discard everything after "current" (we may have reverted to - // a previous versions earlier) - for i := currentIndex + 1; i < len(seq); i++ { - si := seq[i] - if si.Revision == targetRevision { - // but don't discard this one; its' the thing we're switching to! - continue - } - ts := removeInactiveRevision(st, snapsup.Name(), si.Revision) - ts.WaitFor(prev) - tasks = append(tasks, ts.Tasks()...) - prev = tasks[len(tasks)-1] - } - - // make sure we're not scheduling the removal of the target - // revision in the case where the target revision is already in - // the sequence. - for i := 0; i < currentIndex; i++ { - si := seq[i] - if si.Revision == targetRevision { - // we do *not* want to removeInactiveRevision of this one - copy(seq[i:], seq[i+1:]) - seq = seq[:len(seq)-1] - currentIndex-- - } - } - - // normal garbage collect - for i := 0; i <= currentIndex-2; i++ { - si := seq[i] - if boot.InUse(snapsup.Name(), si.Revision) { - continue - } | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/overlord/state ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/changelog ^ |
| @@ -1,2621 +0,0 @@ -snapd (2.23.1~14.04) trusty; urgency=medium - - * New upstream release, LP: #1665608 - - packaging, tests: use "systemctl list-unit-files --full" - everywhere - - interfaces: fix default content attribute value - - tests: do not nuke the entire snapd.conf.d dir when changing - store settings - - hookstate: run the right "snap" command in the hookmanager - - snapstate: revert PR#2958, run configure hook again everywhere - - -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 08 Mar 2017 14:29:56 +0100 - -snapd (2.23~14.04) trusty; urgency=medium - - * New upstream release, LP: #1665608 - - overlord: phase 2 with 2nd setup-profiles and hook done after - restart for core installation - - data: re-add snapd.refresh.{timer,service} with weekly schedule - - interfaces: allow 'getent' by default with some missing dbs to - various interfaces - - overlord/snapstate: drop forced devmode - - snapstate: disable running the configure hook on classic for the - core snap - - ifacestate: re-generate apparmor in InterfaceManager.initialize() - - daemon: DevModeDistro does not imply snapstate.Flags{DevMode:true} - - interfaces/bluez,network-manager: implement ConnectedSlot policy - - cmd: add helpers for mounting / unmounting - - snapstate: error in LinkSnap() if revision is unset - - release: add linuxmint 18 to the non-devmode distros - - cmd: fixes to run correctly on opensuse - - interfaces: consistently use 'const' instead of 'var' for security - policy - - interfaces: miscellaneous policy updates for unity7, udisks2 and - browser-support - - interfaces/apparmor: compensate for kernel behavior change - - many: only tweak core config if hook exists - - overlord/hookstate: don't report a run hook output error without - any context - - cmd/snap-update-ns: move test data and helpers to new module - - vet: fix vet error on mount test. - - tests: empty init (systemd) failover test - - cmd: add .indent.pro file to the tree - - interfaces: specs for apparmor, seccomp, udev - - wrappers/services: RemainAfterExit=yes for oneshot daemons w/ stop - cmds - - tests: several improvements to the nested suite - - tests: do not use core for "All snaps up to date" check - - cmd/snap-update-ns: add function for sorting mount entries - - httputil: copy some headers over redirects - - data/selinux: merge SELinux policy module - - kmod: added Specification for kmod security backend - - tests: failover test for rc.local crash - - debian/tests: map snapd deb pockets to core snap channels for - autopkgtest - - many: switch channels on refresh if needed - - interfaces/builtin: add /boot/uboot/config.txt access to core- - support - - release: assume higher version of supported distros will still - work - - cmd/snap-update-ns: add compare function for mount entries - - tests: enable docker test - - tests: bail out if core snap is not installed - - interfaces: use mount.Entry instead of string snippets. - - osutil: trivial tweaks to build ID support - - many: display kernel version in 'snap version' - - osutil: add package for reading Build-ID - - snap: error when `snap list foo` is run and no snap is installed - - cmd/snap-confine: don't crash if nvidia module is loaded but - drivers are not available - - tests: update listing test for latest core snap version update - - overlord/hookstate/ctlcmd: helper function for creating a deep - copy of interface attributes - - interfaces: add a linux framebuffer interface - - cmd/snap, store: change error messages to reflect latest UX doc - - interfaces: initial unity8 interface - - asserts: improved information about assertions format in the - Decode doc comment - - snapstate: ensure snapstate.CanAutoRefresh is nil in tests - - mkversion.sh: Add support for taking the version as a parameter - - interfaces: add an interface for use by thumbnailer - - cmd/snap-confine: ensure that hostfs is root owned. - - screen-inhibit-control: add methods for delaying screensavers - - overlord: optional device registration and gadget support on - classic - - overlord: make seeding work also on classic, optionally - - image,cmd/snap: refactoring and initial envvar support to use - stores needing auth - - tests: add libvirt interface spread test - - cmd/libsnap: add helper for dropping permissions - - interfaces: misc updates for network-control, firewall-control, - unity7 and default policy - - interfaces: allow recv* and send* by default, accept4 with accept - and other cleanups - - interfaces/builtin: add classic-support interface - - store: use xdelta3 from core if available and not on the regular - system - - snap: add contact: line in `snap info` - - interfaces/builtin: add network-setup-control which allows rw - access to netplan - - unity7: support missing signals and methods for status icons - - cmd: autoconf for RHEL - - cmd/snap-confine: look for PROCFS_SUPER_MAGIC - - dirs: use the right snap mount dir for the distribution - - many: differentiate between "distro" and "core" libexecdir - - cmd: don't reexec on RHEL family - - config: make helpers reusable - - snap-exec: support nested environment variables in environment - - release: add galliumos support - - interfaces/builtin: more path options for serial - - i18n: look into core snaps when checking for translations - - tests: nested image testing - - tests: add basic test for docker - - hookstate,ifacestate: support snapctl set/get slot and plug attrs - (step 3) - - cmd/snap: add shell completion to connect - - cmd: add functions to load/save fstab-like files - - snap run: create "current" symlink in user data dir - - cmd: autoconf for centos - - tests: add more debug if ubuntu-core-upgrade fails - - tests: increase service retries - - packaging/ubuntu-14.04: inform user how to extend PATH with - /snap/bin. - - cmd: add helpers for working with mount/umount commands - - overlord/snapstate: prepare for using snap-update-ns - - cmd: use per-snap mount profile to populate the mount namespace - - overlord/ifacestate: setup seccomp security on startup - - interface/seccomp: sort combined snippets - - release: don't force devmode on LinuxMint "serena" - - tests: filter ubuntu-core systems for authenticated find-private - test - - interfaces/builtin/core-support: Allow modifying logind - configuration from the core snap - - tests: fix "snap managed" output check and suppress output from - expect in the authenticated login tests - - interfaces: shutdown: also allow shutdown/reboot/suspend via - logind - - cmd/snap-confine-tests: reformat test to pass shellcheck - - cmd: add sc_is_debug_enabled - - interfaces/mount: add dedicated mount entry type - - interfaces/core-support: allow modifying systemd-timesyncd and - sysctl configuration - - snap: improve message after `snap refresh pkg1 pkg2` - - tests: improve snap-env test - - interfaces/io-ports-control: use /dev/port, not /dev/ports - - interfaces/mount-observe: add quotactl with arg filtering (LP: - #1626359) - - interfaces/mount: generate per-snap mount profile - - tests: add spread test for delta downloads - - daemon: show "$snapname (delta)" in progress when downloading - deltas - - cmd: use safer functions in sc_mount_opt2str - - asserts: introduce a variant of model assertions for classic - systems - - interfaces/core-support: allow modifying snap rsyslog - configuration - - interfaces: remove some syscalls already in the default policy - plus comment cleanups - - interfaces: miscellaneous updates for hardware-observe, kernel- - module-control, unity7 and default - - snap-confine: add the key for which hsearch_r fails - - snap: improve the error message for `snap try` - - tests: fix pattern and use MATCH in find-private - - tests: stop tying setting up staging store access to the setup of - the state tarball - - tests: add regression spread test for #1660941 - - interfaces/default: don't allow TIOCSTI ioctl - - interfaces: allow nice/setpriority to 0-19 values for calling - process by default - - tests: improve debug when the core transition test hangs - - tests: disable ubuntu-core->core transition on ppc64el (its just - too slow) - - snapstate: move refresh from a systemd timer to the internal - snapstate Ensure() - - tests/lib/fakestore/refresh: some more info when we fail to copy - asserts - - overlord/devicestate: backoff between retries if the server seems - to have refused the serial-request - - image: check kernel/gadget publisher vs model brand, warn on store - disconnected snaps - - vendor: move gettext.go back to github.com/ojii/gettext.go - - store: retry on 502 http response as well - - tests: increase snap-service kill-timeout - - store,osutil: use new osutil.ExecutableExists(exe) check to only - use deltas if xdelta3 is present - - cmd: fix autogen.sh on fedora - - overlord/devicemgr: fix test: setup account-key before using the - key for signing - - cmd: add /usr/local/* to PATH - - cmd: add sc_string_append - - asserts: support for correctly suggesting format 2 for snap- - declaration - - interfaces: port mount backend to new APIs, unify content of per - app/hook profiles - - overlord/devicestate: implement policy about gadget and kernel - matching the model - - interfaces: allow sched_setscheduler again by default - - debian: update breaks/replaces for snap-confine->snapd - - debian: move the snap-confine packaging into snapd | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/compat ^ |
| @@ -1,1 +0,0 @@ -9 | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/copyright ^ |
| @@ -1,22 +0,0 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: snappy -Source: https://github.com/snapcore/snapd - -Files: * -Copyright: Copyright (C) 2014,2015 Canonical, Ltd. -License: GPL-3 - This program is free software: you can redistribute it and/or modify it - under the terms of the the GNU General Public License version 3, as - published by the Free Software Foundation. - . - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranties of - MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR - PURPOSE. See the applicable version of the GNU Lesser General Public - License for more details. - . - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. - . - On Debian systems, the complete text of the GNU General Public License - can be found in `/usr/share/common-licenses/GPL-3' | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/golang-github-snapcore-snapd-dev.install ^ |
| @@ -1,1 +0,0 @@ -debian/tmp/usr/share/gocode/src/* | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/not-installed ^ |
| @@ -1,1 +0,0 @@ -debian/tmp/usr/bin/uboot-go | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/snapd.autoimport.udev ^ |
| @@ -1,3 +0,0 @@ -# probe for assertions, must run before udisks2 -ACTION=="add", SUBSYSTEM=="block" \ - RUN+="/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/%k" | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/snapd.dirs ^ |
| @@ -1,10 +0,0 @@ -snap -usr/lib/snapd -var/lib/snapd/auto-import -var/lib/snapd/desktop -var/lib/snapd/environment -var/lib/snapd/firstboot -var/lib/snapd/lib/gl -var/lib/snapd/snaps/partial -var/lib/snapd/void -var/snap | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/snapd.maintscript ^ |
| @@ -1,4 +0,0 @@ -# keep mount point busy -# we used to ship a custom grub config that is no longer needed -rm_conffile /etc/grub.d/09_snappy 1.7.3ubuntu1 -rm_conffile /etc/ld.so.conf.d/snappy.conf 2.0.7~ | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/snapd.manpages ^ |
| @@ -1,1 +0,0 @@ -snap.8 | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/source ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/source/format ^ |
| @@ -1,1 +0,0 @@ -3.0 (native) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/tests ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/tests/README.md ^ |
| @@ -1,10 +0,0 @@ -## Autopkgtest - -In order to run the autopkgtest suite locally you need first to generate an image: - - $ adt-buildvm-ubuntu-cloud -a amd64 -r xenial -v - -This will create a `adt-xenial-amd64-cloud.img` file, then you can run the tests from -the project's root with: - - $ adt-run --unbuilt-tree . --- qemu ./adt-xenial-amd64-cloud.img | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/tests/testconfig.json ^ |
| @@ -1,3 +0,0 @@ -{ - "FromBranch": false -} | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-14.04/ubuntu-snappy-cli.dirs ^ |
| @@ -1,2 +0,0 @@ -usr/lib/snapd -var/lib/snapd/snaps | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-16.04 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-16.04/changelog ^ |
| @@ -1,2669 +0,0 @@ -snapd (2.23.5) xenial; urgency=medium - - * New upstream release, LP: #1673568 - - allow "sync" in core-support - - -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 17 Mar 2017 18:13:43 +0100 - -snapd (2.23.4) xenial; urgency=medium - - * New upstream release, LP: #1673568 - - fix core-support interface for the new pi-config options - - -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 17 Mar 2017 16:05:57 +0100 - -snapd (2.23.3) xenial; urgency=medium - - * FTBFS due to missing files in vendor/ - - -- Zygmunt Krynicki <zygmunt.krynicki@canonical.com> Thu, 16 Mar 2017 19:56:55 +0100 - -snapd (2.23.2) xenial; urgency=medium - - * New upstream release, LP: #1673568 - - cmd/snap: handle missing snap-confine (#3041) - - -- Zygmunt Krynicki <zygmunt.krynicki@canonical.com> Thu, 16 Mar 2017 19:38:24 +0100 - -snapd (2.23.1) xenial; urgency=medium - - * New upstream release, LP: #1665608 - - packaging, tests: use "systemctl list-unit-files --full" - everywhere - - interfaces: fix default content attribute value - - tests: do not nuke the entire snapd.conf.d dir when changing - store settings - - hookstate: run the right "snap" command in the hookmanager - - snapstate: revert PR#2958, run configure hook again everywhere - - -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 08 Mar 2017 14:29:56 +0100 - -snapd (2.23) xenial; urgency=medium - - * New upstream release, LP: #1665608 - - overlord: phase 2 with 2nd setup-profiles and hook done after - restart for core installation - - data: re-add snapd.refresh.{timer,service} with weekly schedule - - interfaces: allow 'getent' by default with some missing dbs to - various interfaces - - overlord/snapstate: drop forced devmode - - snapstate: disable running the configure hook on classic for the - core snap - - ifacestate: re-generate apparmor in InterfaceManager.initialize() - - daemon: DevModeDistro does not imply snapstate.Flags{DevMode:true} - - interfaces/bluez,network-manager: implement ConnectedSlot policy - - cmd: add helpers for mounting / unmounting - - snapstate: error in LinkSnap() if revision is unset - - release: add linuxmint 18 to the non-devmode distros - - cmd: fixes to run correctly on opensuse - - interfaces: consistently use 'const' instead of 'var' for security - policy - - interfaces: miscellaneous policy updates for unity7, udisks2 and - browser-support - - interfaces/apparmor: compensate for kernel behavior change - - many: only tweak core config if hook exists - - overlord/hookstate: don't report a run hook output error without - any context - - cmd/snap-update-ns: move test data and helpers to new module - - vet: fix vet error on mount test. - - tests: empty init (systemd) failover test - - cmd: add .indent.pro file to the tree - - interfaces: specs for apparmor, seccomp, udev - - wrappers/services: RemainAfterExit=yes for oneshot daemons w/ stop - cmds - - tests: several improvements to the nested suite - - tests: do not use core for "All snaps up to date" check - - cmd/snap-update-ns: add function for sorting mount entries - - httputil: copy some headers over redirects - - data/selinux: merge SELinux policy module - - kmod: added Specification for kmod security backend - - tests: failover test for rc.local crash - - debian/tests: map snapd deb pockets to core snap channels for - autopkgtest - - many: switch channels on refresh if needed - - interfaces/builtin: add /boot/uboot/config.txt access to core- - support - - release: assume higher version of supported distros will still - work - - cmd/snap-update-ns: add compare function for mount entries - - tests: enable docker test - - tests: bail out if core snap is not installed - - interfaces: use mount.Entry instead of string snippets. - - osutil: trivial tweaks to build ID support - - many: display kernel version in 'snap version' - - osutil: add package for reading Build-ID - - snap: error when `snap list foo` is run and no snap is installed - - cmd/snap-confine: don't crash if nvidia module is loaded but - drivers are not available - - tests: update listing test for latest core snap version update - - overlord/hookstate/ctlcmd: helper function for creating a deep - copy of interface attributes - - interfaces: add a linux framebuffer interface - - cmd/snap, store: change error messages to reflect latest UX doc - - interfaces: initial unity8 interface - - asserts: improved information about assertions format in the - Decode doc comment - - snapstate: ensure snapstate.CanAutoRefresh is nil in tests - - mkversion.sh: Add support for taking the version as a parameter - - interfaces: add an interface for use by thumbnailer - - cmd/snap-confine: ensure that hostfs is root owned. - - screen-inhibit-control: add methods for delaying screensavers - - overlord: optional device registration and gadget support on - classic - - overlord: make seeding work also on classic, optionally - - image,cmd/snap: refactoring and initial envvar support to use - stores needing auth - - tests: add libvirt interface spread test - - cmd/libsnap: add helper for dropping permissions - - interfaces: misc updates for network-control, firewall-control, - unity7 and default policy - - interfaces: allow recv* and send* by default, accept4 with accept - and other cleanups - - interfaces/builtin: add classic-support interface - - store: use xdelta3 from core if available and not on the regular - system - - snap: add contact: line in `snap info` - - interfaces/builtin: add network-setup-control which allows rw - access to netplan - - unity7: support missing signals and methods for status icons - - cmd: autoconf for RHEL - - cmd/snap-confine: look for PROCFS_SUPER_MAGIC - - dirs: use the right snap mount dir for the distribution - - many: differentiate between "distro" and "core" libexecdir - - cmd: don't reexec on RHEL family - - config: make helpers reusable - - snap-exec: support nested environment variables in environment - - release: add galliumos support - - interfaces/builtin: more path options for serial - - i18n: look into core snaps when checking for translations - - tests: nested image testing - - tests: add basic test for docker - - hookstate,ifacestate: support snapctl set/get slot and plug attrs - (step 3) - - cmd/snap: add shell completion to connect - - cmd: add functions to load/save fstab-like files - - snap run: create "current" symlink in user data dir - - cmd: autoconf for centos - - tests: add more debug if ubuntu-core-upgrade fails - - tests: increase service retries - - packaging/ubuntu-14.04: inform user how to extend PATH with - /snap/bin. - - cmd: add helpers for working with mount/umount commands - - overlord/snapstate: prepare for using snap-update-ns - - cmd: use per-snap mount profile to populate the mount namespace - - overlord/ifacestate: setup seccomp security on startup - - interface/seccomp: sort combined snippets - - release: don't force devmode on LinuxMint "serena" - - tests: filter ubuntu-core systems for authenticated find-private - test - - interfaces/builtin/core-support: Allow modifying logind - configuration from the core snap - - tests: fix "snap managed" output check and suppress output from - expect in the authenticated login tests - - interfaces: shutdown: also allow shutdown/reboot/suspend via - logind - - cmd/snap-confine-tests: reformat test to pass shellcheck - - cmd: add sc_is_debug_enabled - - interfaces/mount: add dedicated mount entry type - - interfaces/core-support: allow modifying systemd-timesyncd and - sysctl configuration - - snap: improve message after `snap refresh pkg1 pkg2` - - tests: improve snap-env test - - interfaces/io-ports-control: use /dev/port, not /dev/ports - - interfaces/mount-observe: add quotactl with arg filtering (LP: - #1626359) - - interfaces/mount: generate per-snap mount profile - - tests: add spread test for delta downloads - - daemon: show "$snapname (delta)" in progress when downloading - deltas - - cmd: use safer functions in sc_mount_opt2str - - asserts: introduce a variant of model assertions for classic - systems - - interfaces/core-support: allow modifying snap rsyslog - configuration - - interfaces: remove some syscalls already in the default policy - plus comment cleanups - - interfaces: miscellaneous updates for hardware-observe, kernel- - module-control, unity7 and default - - snap-confine: add the key for which hsearch_r fails - - snap: improve the error message for `snap try` - - tests: fix pattern and use MATCH in find-private - - tests: stop tying setting up staging store access to the setup of - the state tarball - - tests: add regression spread test for #1660941 - - interfaces/default: don't allow TIOCSTI ioctl - - interfaces: allow nice/setpriority to 0-19 values for calling - process by default - - tests: improve debug when the core transition test hangs - - tests: disable ubuntu-core->core transition on ppc64el (its just - too slow) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-16.04/rules ^ |
| @@ -1,188 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- - -#export DH_VERBOSE=1 -export DH_OPTIONS -export DH_GOPKG := github.com/snapcore/snapd -#export DEB_BUILD_OPTIONS=nocheck -export DH_GOLANG_EXCLUDES=tests -export DH_GOLANG_GO_GENERATE=1 - -export PATH:=${PATH}:${CURDIR} -# make sure that correct go version is found on trusty -export PATH:=/usr/lib/go-1.6/bin:${PATH} - -include /etc/os-release - -# this is overridden in the ubuntu/14.04 release branch -SYSTEMD_UNITS_DESTDIR="lib/systemd/system/" - -# The go tool does not fully support vendoring with gccgo, but we can -# work around that by constructing the appropriate -I flag by hand. -GCCGO := $(shell go tool dist env > /dev/null 2>&1 && echo no || echo yes) - -BUILDFLAGS:=-buildmode=pie -pkgdir=$(CURDIR)/_build/std -GCCGOFLAGS= -ifeq ($(GCCGO),yes) -GOARCH := $(shell go env GOARCH) -GOOS := $(shell go env GOOS) -BUILDFLAGS:= -GCCGOFLAGS=-gccgoflags="-I $(CURDIR)/_build/pkg/gccgo_$(GOOS)_$(GOARCH)/$(DH_GOPKG)/vendor" -export DH_GOLANG_GO_GENERATE=0 -endif - -# check if we need to include the testkeys in the binary -TAGS= -ifneq (,$(filter testkeys,$(DEB_BUILD_OPTIONS))) - TAGS=-tags withtestkeys -endif - -# export DEB_BUILD_MAINT_OPTIONS = hardening=+all -# DPKG_EXPORT_BUILDFLAGS = 1 -# include /usr/share/dpkg/buildflags.mk - -# Currently, we enable confinement for Ubuntu only, not for derivatives, -# because derivatives may have different kernels that don't support all the -# required confinement features and we don't to mislead anyone about the -# security of the system. Discuss a proper approach to this for downstreams -# if and when they approach us -ifeq ($(shell dpkg-vendor --query Vendor),Ubuntu) - VENDOR_ARGS=--enable-nvidia-ubuntu -else - VENDOR_ARGS=--disable-apparmor -endif - -%: - dh $@ --buildsystem=golang --with=golang --fail-missing --with systemd --builddirectory=_build - -override_dh_fixperms: - dh_fixperms -Xusr/lib/snapd/snap-confine - -override_dh_installdeb: - dh_apparmor --profile-name=usr.lib.snapd.snap-confine -psnapd - dh_installdeb - -override_dh_clean: -ifneq (,$(TEST_GITHUB_AUTOPKGTEST)) - # this will be set by the GITHUB webhook to trigger a autopkgtest - # we only need to run "govendor sync" here and then its ready - (export GOPATH="/tmp/go"; \ - mkdir -p $$GOPATH/src/github.com/snapcore/; \ - cp -ar . $$GOPATH/src/github.com/snapcore/snapd; \ - go get -u github.com/kardianos/govendor; \ - (cd $$GOPATH/src/github.com/snapcore/snapd ; $$GOPATH/bin/govendor sync); \ - cp -ar $$GOPATH/src/github.com/snapcore/snapd/vendor/ .; \ - ) -endif - dh_clean - # XXX: hacky - $(MAKE) -C cmd distclean || true - -override_dh_auto_build: - # usually done via `go generate` but that is not supported on powerpc - ./mkversion.sh - # Build golang bits - mkdir -p _build/src/$(DH_GOPKG)/cmd/snap/test-data - cp -a cmd/snap/test-data/*.gpg _build/src/$(DH_GOPKG)/cmd/snap/test-data/ - dh_auto_build -- $(BUILDFLAGS) $(TAGS) $(GCCGOFLAGS) - # Build C bits, sadly manually - cd cmd && ( autoreconf -i -f ) - cd cmd && ( ./configure --prefix=/usr --libexecdir=/usr/lib/snapd $(VENDOR_ARGS)) - $(MAKE) -C cmd all - -override_dh_auto_test: - dh_auto_test -- $(GCCGOFLAGS) -# a tested default (production) build should have no test keys -ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) - # check that only the main trusted account-key is included - [ $$(strings _build/bin/snapd|grep -c -E "public-key-sha3-384: [a-zA-Z0-9_-]{64}") -eq 1 ] - strings _build/bin/snapd|grep -c "^public-key-sha3-384: -CvQKAwRQ5h3Ffn10FILJoEZUXOv6km9FwA80-Rcj-f-6jadQ89VRswHNiEB9Lxk$$" -endif -ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) - # run the snap-confine tests - $(MAKE) -C cmd check -endif - -override_dh_systemd_enable: - # enable auto-import - dh_systemd_enable \ - -psnapd \ - data/systemd/snapd.autoimport.service - # we want the auto-update timer enabled by default - dh_systemd_enable \ - -psnapd \ - data/systemd/snapd.refresh.timer - # but the auto-update service disabled - dh_systemd_enable \ - --no-enable \ - -psnapd \ - data/systemd/snapd.refresh.service - # enable snapd - dh_systemd_enable \ - -psnapd \ - data/systemd/snapd.socket - dh_systemd_enable \ - -psnapd \ - data/systemd/snapd.service - dh_systemd_enable \ - -psnapd \ - data/systemd/snapd.system-shutdown.service - -override_dh_systemd_start: - # we want to start the auto-update timer - dh_systemd_start \ - -psnapd \ - data/systemd/snapd.refresh.timer - # but not start the service - dh_systemd_start \ - --no-start \ - -psnapd \ - data/systemd/snapd.refresh.service - # start snapd - dh_systemd_start \ - -psnapd \ - data/systemd/snapd.socket - dh_systemd_start \ - -psnapd \ - data/systemd/snapd.service - # start autoimport - dh_systemd_start \ - -psnapd \ - data/systemd/snapd.autoimport.service - -override_dh_install: - # we do not need this in the package, its just needed during build - rm -rf ${CURDIR}/debian/tmp/usr/bin/xgettext-go - # uboot-go is not shippable - rm -f ${CURDIR}/debian/tmp/usr/bin/uboot-go - # toolbelt is not shippable - rm -f ${CURDIR}/debian/tmp/usr/bin/toolbelt - # we do not like /usr/bin/snappy anymore - rm -f ${CURDIR}/debian/tmp/usr/bin/snappy - # i18n stuff - mkdir -p debian/snapd/usr/share - if [ -d share/locale ]; then \ - cp -R share/locale debian/snapd/usr/share; \ - fi - # install snapd's systemd units, done here instead of - # debian/snapd.install because the ubuntu/14.04 release - # branch adds/changes bits here - mkdir -p debian/snapd/$(SYSTEMD_UNITS_DESTDIR) - install --mode=0644 data/systemd/snapd.refresh.timer debian/snapd/$(SYSTEMD_UNITS_DESTDIR) - install --mode=0644 data/systemd/snapd.refresh.service debian/snapd/$(SYSTEMD_UNITS_DESTDIR) - install --mode=0644 data/systemd/snapd.autoimport.service debian/snapd/$(SYSTEMD_UNITS_DESTDIR) - install --mode=0644 data/systemd/*.socket debian/snapd/$(SYSTEMD_UNITS_DESTDIR) - install --mode=0644 data/systemd/snapd.service debian/snapd/$(SYSTEMD_UNITS_DESTDIR) - install --mode=0644 data/systemd/snapd.system-shutdown.service debian/snapd/$(SYSTEMD_UNITS_DESTDIR) - $(MAKE) -C cmd install DESTDIR=$(CURDIR)/debian/tmp - dh_install - -override_dh_auto_install: snap.8 - dh_auto_install -O--buildsystem=golang - -snap.8: - $(CURDIR)/_build/bin/snap help --man > $@ - -override_dh_auto_clean: - dh_auto_clean -O--buildsystem=golang - rm -vf snap.8 | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-16.04/snapd.install ^ |
| @@ -1,31 +0,0 @@ -usr/bin/snap -usr/bin/snapctl -usr/lib/snapd/system-shutdown -usr/bin/snap-exec /usr/lib/snapd/ -usr/bin/snapd /usr/lib/snapd/ - -# etc/profile.d contains the PATH extension for snap packages -etc/profile.d -# etc/X11/Xsession.d will add to XDG_DATA_DIRS so that we have .desktop support -etc/X11 -# bash completion -data/completion/snap /usr/share/bash-completion/completions -# udev, must be installed before 80-udisks -data/udev/rules.d/66-snapd-autoimport.rules /lib/udev/rules.d -# snap/snapd version information -data/info /usr/lib/snapd/ - -# snap-confine stuff -etc/apparmor.d/usr.lib.snapd.snap-confine -lib/udev/rules.d/80-snappy-assign.rules -lib/udev/snappy-app-dev -usr/lib/snapd/snap-confine -usr/lib/snapd/snap-discard-ns -usr/lib/snapd/snap-update-ns -usr/share/man/man5/snap-confine.5 -usr/share/man/man5/snap-update-ns.5 -usr/share/man/man5/snap-discard-ns.5 -# for compatibility with ancient snap installs that wrote the shell based -# wrapper scripts instead of the modern symlinks -usr/bin/ubuntu-core-launcher - | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-16.04/source ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-16.04/tests ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-16.10 ^ |
| -(symlink to ubuntu-16.04) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/packaging/ubuntu-17.04 ^ |
| -(symlink to ubuntu-16.04) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/partition ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/partition/grubenv ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/po ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/progress ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/provisioning ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/release ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/snap ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/snap/snapdir ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/snap/snapenv ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/snap/snaptest ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/snap/squashfs ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/store ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/strutil ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/systemd ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/assertions ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/external ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/fakedevicesvc ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/fakestore ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/fakestore/cmd ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/fakestore/cmd/fakestore ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/fakestore/refresh ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/fakestore/store ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/prepare.sh ^ |
| @@ -1,365 +0,0 @@ -#!/bin/bash - -set -eux - -. $TESTSLIB/apt.sh - -update_core_snap_for_classic_reexec() { - # it is possible to disable this to test that snapd (the deb) works - # fine with whatever is in the core snap - if [ "$MODIFY_CORE_SNAP_FOR_REEXEC" != "1" ]; then - echo "Not modifying the core snap as requested via MODIFY_CORE_SNAP_FOR_REEXEC" - return - fi - - # We want to use the in-tree snap/snapd/snap-exec/snapctl, because - # we re-exec by default. - # To accomplish that, we'll just unpack the core we just grabbed, - # shove the new snap-exec and snapctl in there, and repack it. - - # First of all, unmount the core - core="$(readlink -f /snap/core/current || readlink -f /snap/ubuntu-core/current)" - snap="$(mount | grep " $core" | awk '{print $1}')" - umount --verbose "$core" - - # Now unpack the core, inject the new snap-exec/snapctl into it - unsquashfs "$snap" - cp /usr/lib/snapd/snap-exec squashfs-root/usr/lib/snapd/ - cp /usr/bin/snapctl squashfs-root/usr/bin/ - # also inject new version of snap-confine and snap-scard-ns - cp /usr/lib/snapd/snap-discard-ns squashfs-root/usr/lib/snapd/ - cp /usr/lib/snapd/snap-confine squashfs-root/usr/lib/snapd/ - # also add snap/snapd because we re-exec by default and want to test - # this version - cp /usr/lib/snapd/snapd squashfs-root/usr/lib/snapd/ - cp /usr/lib/snapd/info squashfs-root/usr/lib/snapd/ - cp /usr/bin/snap squashfs-root/usr/bin/snap - # repack, cheating to speed things up (4sec vs 1.5min) - mv "$snap" "${snap}.orig" - if [[ "$SPREAD_SYSTEM" == ubuntu-14.04-* ]]; then - # trusty does not support -Xcompression-level 1 - mksquashfs squashfs-root "$snap" -comp gzip - else - mksquashfs squashfs-root "$snap" -comp gzip -Xcompression-level 1 - fi - rm -rf squashfs-root - - # Now mount the new core snap - mount "$snap" "$core" - - # Make sure we're running with the correct copied bits - for p in /usr/lib/snapd/snap-exec /usr/lib/snapd/snap-confine /usr/lib/snapd/snap-discard-ns /usr/bin/snapctl /usr/lib/snapd/snapd /usr/bin/snap; do - if ! cmp ${p} ${core}${p}; then - echo "$p in tree and $p in core snap are unexpectedly not the same" - exit 1 - fi - done -} - -prepare_each_classic() { - mkdir -p /etc/systemd/system/snapd.service.d - if [ -z "${SNAP_REEXEC:-}" ]; then - rm -f /etc/systemd/system/snapd.service.d/reexec.conf - else - cat <<EOF > /etc/systemd/system/snapd.service.d/reexec.conf -[Service] -Environment=SNAP_REEXEC=$SNAP_REEXEC -EOF - fi - if [ ! -f /etc/systemd/system/snapd.service.d/local.conf ]; then - echo "/etc/systemd/system/snapd.service.d/local.conf vanished!" - exit 1 - fi -} - -prepare_classic() { - apt_install_local ${GOPATH}/snapd_*.deb - if snap --version |MATCH unknown; then - echo "Package build incorrect, 'snap --version' mentions 'unknown'" - snap --version - apt-cache policy snapd - exit 1 - fi - if /usr/lib/snapd/snap-confine --version | MATCH unknown; then - echo "Package build incorrect, 'snap-confine --version' mentions 'unknown'" - /usr/lib/snapd/snap-confine --version - apt-cache policy snap-confine - exit 1 - fi - - mkdir -p /etc/systemd/system/snapd.service.d - cat <<EOF > /etc/systemd/system/snapd.service.d/local.conf -[Unit] -StartLimitInterval=0 -[Service] -Environment=SNAPD_DEBUG_HTTP=7 SNAPD_DEBUG=1 SNAPPY_TESTING=1 -EOF - mkdir -p /etc/systemd/system/snapd.socket.d - cat <<EOF > /etc/systemd/system/snapd.socket.d/local.conf -[Unit] -StartLimitInterval=0 -EOF - - if [ "$REMOTE_STORE" = staging ]; then - . $TESTSLIB/store.sh - setup_staging_store - fi - - # Snapshot the state including core. - if [ ! -f $SPREAD_PATH/snapd-state.tar.gz ]; then - ! snap list | grep core || exit 1 - # use parameterized core channel (defaults to edge) instead - # of a fixed one and close to stable in order to detect defects - # earlier - snap install --${CORE_CHANNEL} core - snap list | grep core - - # ensure no auto-refresh happens during the tests - if [ -e /snap/core/current/meta/hooks/configure ]; then - snap set core refresh.disabled=true - fi - - echo "Ensure that the grub-editenv list output is empty on classic" - output=$(grub-editenv list) - if [ -n "$output" ]; then - echo "Expected empty grub environment, got:" - echo "$output" - exit 1 - fi - - systemctl stop snapd.service snapd.socket - - update_core_snap_for_classic_reexec - - systemctl daemon-reload - mounts="$(systemctl list-unit-files --full | grep '^snap[-.].*\.mount' | cut -f1 -d ' ')" - services="$(systemctl list-unit-files --full | grep '^snap[-.].*\.service' | cut -f1 -d ' ')" - for unit in $services $mounts; do - systemctl stop $unit - done - tar czf $SPREAD_PATH/snapd-state.tar.gz /var/lib/snapd /snap /etc/systemd/system/snap-*core*.mount - systemctl daemon-reload # Workaround for http://paste.ubuntu.com/17735820/ - for unit in $mounts $services; do - systemctl start $unit - done - systemctl start snapd.socket - fi -} - -setup_reflash_magic() { - # install the stuff we need - apt-get install -y kpartx busybox-static - apt_install_local ${GOPATH}/snapd_*.deb - apt-get clean - - snap install --${CORE_CHANNEL} core - - # install ubuntu-image - snap install --devmode --edge ubuntu-image - - # needs to be under /home because ubuntu-device-flash - # uses snap-confine and that will hide parts of the hostfs - IMAGE_HOME=/home/image - mkdir -p $IMAGE_HOME - - # modify the core snap so that the current root-pw works there - # for spread to do the first login - UNPACKD="/tmp/core-snap" - unsquashfs -d $UNPACKD /var/lib/snapd/snaps/core_*.snap - - # FIXME: netplan workaround - mkdir -p $UNPACKD/etc/netplan - - # set root pw by concating root line from host and rest from core - want_pw="$(grep ^root /etc/shadow)" - echo "$want_pw" > /tmp/new-shadow - tail -n +2 /etc/shadow >> /tmp/new-shadow - cp -v /tmp/new-shadow $UNPACKD/etc/shadow - cp -v /etc/passwd $UNPACKD/etc/passwd - - # ensure spread -reuse works in the core image as well - if [ -e /.spread.yaml ]; then - cp -av /.spread.yaml $UNPACKD - fi - - # we need the test user in the image - # see the comment in spread.yaml about 12345 - sed -i "s/^test.*$//" $UNPACKD/etc/{shadow,passwd} - chroot $UNPACKD addgroup --quiet --gid 12345 test - chroot $UNPACKD adduser --quiet --no-create-home --uid 12345 --gid 12345 --disabled-password --gecos '' test - echo 'test ALL=(ALL) NOPASSWD:ALL' >> $UNPACKD/etc/sudoers.d/99-test-user - - echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' >> $UNPACKD/etc/sudoers.d/99-ubuntu-user - - # modify sshd so that we can connect as root - sed -i 's/\(PermitRootLogin\|PasswordAuthentication\)\>.*/\1 yes/' $UNPACKD/etc/ssh/sshd_config - - # FIXME: install would be better but we don't have dpkg on - # the image - # unpack our freshly build snapd into the new core snap | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snapbuild ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps.sh ^ |
| @@ -1,16 +0,0 @@ -#!/bin/sh - -install_local() { - local SNAP_NAME="$1" - shift; - local SNAP_FILE="$TESTSLIB/snaps/${SNAP_NAME}/${SNAP_NAME}_1.0_all.snap" - local SNAP_DIR=$(dirname "$SNAP_FILE") - if [ ! -f "$SNAP_FILE" ]; then - snapbuild "$SNAP_DIR" "$SNAP_DIR" - fi - snap install --dangerous "$@" "$SNAP_FILE" -} - -install_local_devmode() { - install_local "$1" --devmode -} | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/account-control-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/account-control-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/account-control-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/aliases ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/aliases/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/aliases/meta ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/aliases/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-desktop ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-desktop/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-desktop/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-desktop/meta/gui ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-desktop/meta/gui/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-hooks ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-hooks/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-hooks/meta/hooks ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-hooks/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-consumer/meta/hooks ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-consumer/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-producer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-producer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-producer/meta/hooks ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-producer/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic/meta ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/basic/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/classic-gadget ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/classic-gadget/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/classic-gadget/meta/hooks ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/classic-gadget/meta/hooks/prepare-device ^ |
| @@ -1,2 +0,0 @@ -#!/bin/sh -snapctl set device-service.url=http://localhost:11029 | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/classic-gadget/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/data-writer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/data-writer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/data-writer/meta ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/data-writer/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/failing-config-hooks ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/failing-config-hooks/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/failing-config-hooks/meta/hooks ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/failing-config-hooks/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/firewall-control-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/firewall-control-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/firewall-control-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/gpio-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/gpio-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/gpio-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/hardware-observe-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/hardware-observe-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/hardware-observe-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/home-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/home-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/home-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/iio-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/iio-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/iio-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/locale-control-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/locale-control-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/locale-control-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/log-observe-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/log-observe-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/log-observe-consumer/bin/cmd ^ |
| @@ -1,6 +0,0 @@ -#!/bin/sh - -command="$1" -shift - -"$command" "$@" | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/log-observe-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/modem-manager-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/modem-manager-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/modem-manager-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/mount-observe-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/mount-observe-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/mount-observe-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-bind-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-bind-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-bind-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-control-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-control-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-control-consumer/bin/query ^ |
| @@ -1,10 +0,0 @@ -#!/usr/bin/env python3 - -import subprocess -import sys - -def run(): - subprocess.check_call("netstat -lnt", shell=True) - -if __name__ == '__main__': - sys.exit(run()) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-control-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-observe-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-observe-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/network-observe-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/process-control-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/process-control-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/process-control-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/snapctl-hooks ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/snapctl-hooks-v2 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/snapctl-hooks-v2/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/snapctl-hooks-v2/meta/hooks ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/snapctl-hooks-v2/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/snapctl-hooks/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/snapctl-hooks/meta/hooks ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/snapctl-hooks/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/system-observe-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/system-observe-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/system-observe-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-auto-aliases ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-auto-aliases/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-auto-aliases/meta ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-auto-aliases/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-classic-confinement ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-classic-confinement/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-classic-confinement/meta ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-classic-confinement/meta/icon.png ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug-empty-content-attr ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/import ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/import/.placeholder ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug/import ^ |
| -(directory) | ||
| Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug/import/.placeholder ^ | |
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-slot ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-slot-empty-content-attr ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-slot-empty-content-attr/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-slot-empty-content-attr/shared-content ^ |
| @@ -1,3 +0,0 @@ -Some shared content - -Is here! | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-content-slot/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-control-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-control-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-control-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-cups-control-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-devmode ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-devmode/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-fuse-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-go-webserver ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-libvirt-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-libvirt-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-libvirt-consumer/vm ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-private ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-private/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-python-webserver ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v1 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v1/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v1/bin/service ^ |
| @@ -1,3 +0,0 @@ -#!/bin/sh - -echo "service v1" | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v1/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v2 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v2/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v2/bin/service ^ |
| @@ -1,3 +0,0 @@ -#!/bin/sh - -echo "service v1" | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v2/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-v1-good ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-v1-good/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-v1-good/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-v2-bad ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-v2-bad/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service-v2-bad/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-service/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-tools ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-tools/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/test-snapd-upower-observe-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/time-control-consumer ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/time-control-consumer/bin ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/lib/snaps/time-control-consumer/meta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/abort ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ack ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/alias ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/auth-errors ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/auto-aliases ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/auto-refresh ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/change-errors ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/chattr ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/classic-confinement ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/classic-custom-device-reg ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/classic-firstboot ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/classic-ubuntu-core-transition ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/classic-ubuntu-core-transition-auth ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/classic-ubuntu-core-transition-two-cores ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/cmdline ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/completion ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/confinement-classic ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/confinement-classic/test-snapd-hello-classic ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/create-key ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/create-user ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/docker ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/enable-disable ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/enable-disable-units-gpio ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/failover ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/find-private ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/firstboot ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/help ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/i18n ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/install-errors ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/install-remove-multi ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/install-sideload ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/install-store ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/install-store-laaaarge ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-account-control ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-bluez ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-cli ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-content ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-content-empty-content-attr ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-cups-control ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-cups-control/task.yaml ^ |
| @@ -1,70 +0,0 @@ -summary: Ensure that the cups interface works. - -systems: [-ubuntu-core-16-64, -ubuntu-core-16-arm-64, -ubuntu-core-16-arm-32] - -details: | - The cups-control interface allows a snap to access the locale configuration. - - A snap which defines the cups-control plug must be shown in the interfaces list. - The plug must not be autoconnected on install and, as usual, must be able to be - reconnected. - - A snap declaring a plug on this interface must be able to talk to the cups daemon. - The test snap used pulls the lpr functionality and installs a pdf printer. In order - to actually connect to the socket it needs to declare a plug on the network interface. - The test checks for the existence of a pdf file generated by the lpr command in the - snap. - -environment: - TEST_FILE: /var/snap/test-snapd-cups-control-consumer/current/test_file.txt - -prepare: | - echo "Given a snap declaring a cups plug is installed" - snap install test-snapd-cups-control-consumer - - echo "And the pdf printer is available" - if [[ "$SPREAD_SYSTEM" == ubuntu-14.04-* ]]; then - apt-get install -y cups-pdf - else - apt-get install -y printer-driver-cups-pdf - fi - -restore: | - if [[ "$SPREAD_SYSTEM" == ubuntu-14.04-* ]]; then - apt-get remove -y cups-pdf - else - apt-get remove -y printer-driver-cups-pdf - fi - rm -rf $HOME/PDF $TEST_FILE print.error - -execute: | - CONNECTED_PATTERN=":cups-control +test-snapd-cups-control-consumer" - DISCONNECTED_PATTERN="(?s).*?\n- +test-snapd-cups-control-consumer:cups-control" - . "$TESTSLIB/names.sh" - - echo "Then it is not shown as connected" - snap interfaces | grep -Pzq "$DISCONNECTED_PATTERN" - - echo "====================================" - - echo "When the plug is connected" - snap connect test-snapd-cups-control-consumer:cups-control ${core_name}:cups-control - snap interfaces | grep -Pzq "$CONNECTED_PATTERN" - - echo "Then the snap command is able to print files" - echo "Hello World" > $TEST_FILE - test-snapd-cups-control-consumer.lpr $TEST_FILE - while ! test -e $HOME/PDF/test_file.pdf; do sleep 1; done - - echo "====================================" - - echo "When the plug is disconnected" - snap disconnect test-snapd-cups-control-consumer:cups-control ${core_name}:cups-control - snap interfaces | grep -Pzq "$DISCONNECTED_PATTERN" - - echo "Then the snap command is not able to print files" - if test-snapd-cups-control-consumer.lpr $TEST_FILE 2>print.error; then - echo "Expected error with plug disconnected" - exit 1 - fi - grep -q "scheduler not responding" print.error | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-firewall-control ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-fuse_support ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-hardware-observe ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-home ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-hooks ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-iio ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-libvirt ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-locale-control ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-log-observe ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-mount-observe ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-network ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-network-bind ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-network-bind/task.yaml ^ |
| @@ -1,74 +0,0 @@ -summary: Ensure that the network-bind interface works - -details: | - The network-bind interface allows a daemon to access the network as a server. - - A snap which defines the network-bind plug must be shown in the interfaces list. - The plug must be autoconnected on install and, as usual, must be able to be - reconnected. - - A snap declaring a plug on this interface must be accessible by a network client. - -environment: - SNAP_NAME: network-bind-consumer - SNAP_FILE: ${SNAP_NAME}_1.0_all.snap - PORT: 8081 - REQUEST_FILE: ./request.txt - -prepare: | - echo "Given a snap declaring the network-bind plug is installed" - snapbuild $TESTSLIB/snaps/$SNAP_NAME . - snap install --dangerous $SNAP_FILE - - echo "Given the snap's service is listening" - while ! netstat -lnt | grep -Pq "tcp.*?:$PORT +.*?LISTEN\n*"; do sleep 0.5; done - - echo "Given we store a basic HTTP request" - cat > $REQUEST_FILE <<EOF - GET / HTTP/1.0 - - EOF - -restore: | - rm -f $SNAP_FILE $REQUEST_FILE - -execute: | - . "$TESTSLIB/names.sh" - CONNECTED_PATTERN="(?s)Slot +Plug\n\ - .*?\n\ - :network-bind +$SNAP_NAME" - DISCONNECTED_PATTERN="(?s)Slot +Plug\n\ - .*?\n\ - - +$SNAP_NAME:network-bind" - - echo "Then the snap is listed as connected" - snap interfaces | grep -Pzq "$CONNECTED_PATTERN" - - echo "============================================" - - echo "When the plug is disconnected" - snap disconnect $SNAP_NAME:network-bind ${core_name}:network-bind - snap interfaces | grep -Pzq "$DISCONNECTED_PATTERN" - - echo "Then the plug can be connected again" - snap connect $SNAP_NAME:network-bind ${core_name}:network-bind - snap interfaces | grep -Pzq "$CONNECTED_PATTERN" - - echo "============================================" - - echo "When the plug is connected" - snap connect $SNAP_NAME:network-bind ${core_name}:network-bind - snap interfaces | grep -Pzq "$CONNECTED_PATTERN" - - echo "Then the service is accessible by a client" - nc -w 2 -q 2 localhost "$PORT" < $REQUEST_FILE | grep -Pqz "ok\n" - - echo "============================================" - - echo "When the plug is disconnected" - snap disconnect $SNAP_NAME:network-bind ${core_name}:network-bind - snap interfaces | grep -Pzq "$DISCONNECTED_PATTERN" - - echo "Then the service is not accessible by a client" - response=$(nc -w 2 -q 2 localhost "$PORT" < $REQUEST_FILE) - [ "$response" = "" ] | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-network-control ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-network-control-ip-netns ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-network-observe ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-process-control ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-snapd-control ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-system-observe ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-time-control ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-udev ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/interfaces-upower-observe ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/known ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/known-remote ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/listing ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/local-install-w-metadata ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/login ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/manpages ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/op-install-failed-undone ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/op-remove ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/op-remove-retry ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/postrm-purge ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/prepare-image-grub ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/prepare-image-uboot ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/refresh ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/refresh-all ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/refresh-all-undo ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/refresh-delta ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/refresh-delta-from-core ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/refresh-devmode ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/refresh-undo ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/regression-home-snap-root-owned ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/regression-jailmode-1641885 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/remove-errors ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/revert ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/revert-devmode ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/revert-sideload ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/searching ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/security-apparmor ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/security-device-cgroups ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/security-devpts ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/security-private-tmp ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/security-profiles ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/security-setuid-root ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/server-snap ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-auto-import-asserts ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-auto-import-asserts-spools ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-auto-mount ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-connect ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-disconnect ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-download ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-env ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-get ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-info ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-remove-not-mounted ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-run-alias ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-run-hook ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-run-symlink ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-run-symlink-error ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-run-userdata-current ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-service ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-set ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snap-sign ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snapctl ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/snapd-reexec ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/static ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/systemd-service ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/try ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/try-non-fatal ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/try-snap-goes-away ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/try-snap-is-optional ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/try-twice-with-daemon ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-apt ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-classic ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-create-user ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-custom-device-reg ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-custom-device-reg-extras ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-custom-device-reg-extras/manip_seed.py ^ |
| @@ -1,21 +0,0 @@ -import sys -import yaml - -with open(sys.argv[1]) as f: - seed = yaml.load(f) - -i = 0 -snaps = seed['snaps'] -while i < len(snaps): - entry = snaps[i] - if entry['name'] == 'pc': - snaps[i] = { - "name": "pc", - "unasserted": True, - "file": "pc_x1.snap", - } - break - i += 1 - -with open(sys.argv[1], 'w') as f: - yaml.dump(seed, stream=f, indent=2, default_flow_style=False) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-device-reg ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-fan ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-grub ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-os-release ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-reboot ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-uboot ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-upgrade ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/ubuntu-core-writablepaths ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/unity ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/main/writable-areas ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/nested ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/nested/image-build ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1580018 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1595444 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1597839 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1597842 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1599891 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1606277 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1607796 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1613845 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1615113 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1618683 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1630479 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/regression/lp-1665004 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/unit ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/unit/c-unit-tests ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/unit/gccgo ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/upgrade ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/upgrade/basic ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/tests/util ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/testutil ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/timeout ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/cheggaaa ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/cheggaaa/pb ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/coreos ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/coreos/go-systemd ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/coreos/go-systemd/activation ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/gorilla ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/gorilla/context ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/gorilla/context/LICENSE ^ |
| @@ -1,27 +0,0 @@ -Copyright (c) 2012 Rodrigo Moraes. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/gorilla/mux ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/gorilla/websocket ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/jessevdk ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/jessevdk/go-flags ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/mvo5 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/mvo5/goconfigparser ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/mvo5/goconfigparser/COPYING ^ |
| @@ -1,19 +0,0 @@ -Copyright (c) 2014 Canonical - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/mvo5/uboot-go ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/mvo5/uboot-go/uenv ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/ojii ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/ojii/gettext.go ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/ojii/gettext.go/pluralforms ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/testing-cabal ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/github.com/testing-cabal/subunit-go ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/LICENSE ^ |
| @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/PATENTS ^ |
| @@ -1,22 +0,0 @@ -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by -Google as part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in -the future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any -entity (including a cross-claim or counterclaim in a lawsuit) alleging -that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent -infringement, or inducement of patent infringement, then any patent -rights granted to you under this License for this implementation of Go -shall terminate as of the date such litigation is filed. | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/acme ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/acme/autocert ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/acme/internal ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/acme/internal/acme ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/bcrypt ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/blowfish ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/bn256 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/cast5 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/curve25519 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ed25519 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ed25519/internal ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ed25519/internal/edwards25519 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/hkdf ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/md4 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/nacl ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/nacl/box ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/nacl/secretbox ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ocsp ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/openpgp ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/armor ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/clearsign ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/elgamal ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/errors ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/s2k ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/otr ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/pbkdf2 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/internal ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/internal/rc2 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/poly1305 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ripemd160 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/salsa20 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/salsa20/salsa ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/scrypt ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/sha3 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ssh ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ssh/agent ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ssh/terminal ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/ssh/test ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/tea ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/twofish ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/xtea ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/crypto/xts ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/net ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/net/context ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/golang.org/x/net/context/ctxhttp ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/check.v1 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/macaroon.v1 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/mgo.v2 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/mgo.v2/bson ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/retry.v1 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/tomb.v2 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/tylerb ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/tylerb/graceful.v1 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/vendor/gopkg.in/yaml.v2 ^ |
| -(directory) | ||
| [-] [+] | Deleted | snapd_2.23.5.tar.xz/snapd-2.23.5/wrappers ^ |
| -(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/.travis.yml ^ |
| (renamed from snapd-2.23.5/.travis.yml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/CONTRIBUTING.md ^ |
| (renamed from snapd-2.23.5/CONTRIBUTING.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/COPYING ^ |
| (renamed from snapd-2.23.5/COPYING) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/HACKING.md ^ |
| (renamed from snapd-2.23.5/HACKING.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/README.md ^ |
| (renamed from snapd-2.23.5/README.md) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/arch ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/arch/arch.go ^ |
| (renamed from snapd-2.23.5/arch/arch.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/arch/arch_test.go ^ |
| (renamed from snapd-2.23.5/arch/arch_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/account.go ^ |
| (renamed from snapd-2.23.5/asserts/account.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/account_key.go ^ |
| (renamed from snapd-2.23.5/asserts/account_key.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/account_key_test.go ^ |
| (renamed from snapd-2.23.5/asserts/account_key_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/account_test.go ^ |
| (renamed from snapd-2.23.5/asserts/account_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/asserts.go ^ |
| (renamed from snapd-2.23.5/asserts/asserts.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/asserts_test.go ^ |
| (renamed from snapd-2.23.5/asserts/asserts_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/assertstest ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/assertstest/assertstest.go ^ |
| (renamed from snapd-2.23.5/asserts/assertstest/assertstest.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/assertstest/assertstest_test.go ^ |
| (renamed from snapd-2.23.5/asserts/assertstest/assertstest_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/crypto.go ^ |
| (renamed from snapd-2.23.5/asserts/crypto.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/database.go ^ |
| (renamed from snapd-2.23.5/asserts/database.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/database_test.go ^ |
| (renamed from snapd-2.23.5/asserts/database_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/device_asserts.go ^ |
| (renamed from snapd-2.23.5/asserts/device_asserts.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/device_asserts_test.go ^ |
| (renamed from snapd-2.23.5/asserts/device_asserts_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/digest.go ^ |
| (renamed from snapd-2.23.5/asserts/digest.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/digest_test.go ^ |
| (renamed from snapd-2.23.5/asserts/digest_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/export_test.go ^ |
| (renamed from snapd-2.23.5/asserts/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/fetcher.go ^ |
| (renamed from snapd-2.23.5/asserts/fetcher.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/fetcher_test.go ^ |
| (renamed from snapd-2.23.5/asserts/fetcher_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/findwildcard.go ^ |
| (renamed from snapd-2.23.5/asserts/findwildcard.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/findwildcard_test.go ^ |
| (renamed from snapd-2.23.5/asserts/findwildcard_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/fsbackstore.go ^ |
| (renamed from snapd-2.23.5/asserts/fsbackstore.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/fsbackstore_test.go ^ |
| (renamed from snapd-2.23.5/asserts/fsbackstore_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/fsentryutils.go ^ |
| (renamed from snapd-2.23.5/asserts/fsentryutils.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/fskeypairmgr.go ^ |
| (renamed from snapd-2.23.5/asserts/fskeypairmgr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/fskeypairmgr_test.go ^ |
| (renamed from snapd-2.23.5/asserts/fskeypairmgr_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/gpgkeypairmgr.go ^ |
| (renamed from snapd-2.23.5/asserts/gpgkeypairmgr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/gpgkeypairmgr_test.go ^ |
| (renamed from snapd-2.23.5/asserts/gpgkeypairmgr_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/header_checks.go ^ |
| (renamed from snapd-2.23.5/asserts/header_checks.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/headers.go ^ |
| (renamed from snapd-2.23.5/asserts/headers.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/headers_test.go ^ |
| (renamed from snapd-2.23.5/asserts/headers_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/ifacedecls.go ^ |
| (renamed from snapd-2.23.5/asserts/ifacedecls.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/ifacedecls_test.go ^ |
| (renamed from snapd-2.23.5/asserts/ifacedecls_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/membackstore.go ^ |
| (renamed from snapd-2.23.5/asserts/membackstore.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/membackstore_test.go ^ |
| (renamed from snapd-2.23.5/asserts/membackstore_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/memkeypairmgr.go ^ |
| (renamed from snapd-2.23.5/asserts/memkeypairmgr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/memkeypairmgr_test.go ^ |
| (renamed from snapd-2.23.5/asserts/memkeypairmgr_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/privkeys_for_test.go ^ |
| (renamed from snapd-2.23.5/asserts/privkeys_for_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/signtool ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/signtool/sign.go ^ |
| (renamed from snapd-2.23.5/asserts/signtool/sign.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/signtool/sign_test.go ^ |
| (renamed from snapd-2.23.5/asserts/signtool/sign_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/snap_asserts.go ^ |
| (renamed from snapd-2.23.5/asserts/snap_asserts.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/snap_asserts_test.go ^ |
| (renamed from snapd-2.23.5/asserts/snap_asserts_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/snapasserts ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/snapasserts/snapasserts.go ^ |
| (renamed from snapd-2.23.5/asserts/snapasserts/snapasserts.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/snapasserts/snapasserts_test.go ^ |
| (renamed from snapd-2.23.5/asserts/snapasserts/snapasserts_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/sysdb ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/sysdb/staging.go ^ |
| (renamed from snapd-2.23.5/asserts/sysdb/staging.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/sysdb/sysdb.go ^ |
| (renamed from snapd-2.23.5/asserts/sysdb/sysdb.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/sysdb/sysdb_test.go ^ |
| (renamed from snapd-2.23.5/asserts/sysdb/sysdb_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/sysdb/testkeys.go ^ |
| (renamed from snapd-2.23.5/asserts/sysdb/testkeys.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/sysdb/trusted.go ^ |
| (renamed from snapd-2.23.5/asserts/sysdb/trusted.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/systestkeys ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/systestkeys/trusted.go ^ |
| (renamed from snapd-2.23.5/asserts/systestkeys/trusted.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/user.go ^ |
| (renamed from snapd-2.23.5/asserts/user.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/asserts/user_test.go ^ |
| (renamed from snapd-2.23.5/asserts/user_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/boot ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/boot/boottest ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/boot/boottest/mockbootloader.go ^ |
| (renamed from snapd-2.23.5/boot/boottest/mockbootloader.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/boot/kernel_os.go ^ |
| (renamed from snapd-2.23.5/boot/kernel_os.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/boot/kernel_os_test.go ^ |
| (renamed from snapd-2.23.5/boot/kernel_os_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/client ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/aliases.go ^ |
| (renamed from snapd-2.23.5/client/aliases.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/aliases_test.go ^ |
| (renamed from snapd-2.23.5/client/aliases_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/asserts.go ^ |
| (renamed from snapd-2.23.5/client/asserts.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/asserts_test.go ^ |
| (renamed from snapd-2.23.5/client/asserts_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/buy.go ^ |
| (renamed from snapd-2.23.5/client/buy.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/change.go ^ |
| (renamed from snapd-2.23.5/client/change.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/change_test.go ^ |
| (renamed from snapd-2.23.5/client/change_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/client/client.go ^ |
| @@ -0,0 +1,511 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2015-2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package client + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "io/ioutil" + "net" + "net/http" + "net/url" + "os" + "path" + "time" + + "github.com/snapcore/snapd/dirs" +) + +func unixDialer(socketPath string) func(string, string) (net.Conn, error) { + if socketPath == "" { + socketPath = dirs.SnapdSocket + } + return func(_, _ string) (net.Conn, error) { + return net.Dial("unix", socketPath) + } +} + +type doer interface { + Do(*http.Request) (*http.Response, error) +} + +// Config allows to customize client behavior. +type Config struct { + // BaseURL contains the base URL where snappy daemon is expected to be. + // It can be empty for a default behavior of talking over a unix socket. + BaseURL string + + // DisableAuth controls whether the client should send an + // Authorization header from reading the auth.json data. + DisableAuth bool + + // Socket is the path to the unix socket to use + Socket string +} + +// A Client knows how to talk to the snappy daemon. +type Client struct { + baseURL url.URL + doer doer + + disableAuth bool +} + +// New returns a new instance of Client +func New(config *Config) *Client { + if config == nil { + config = &Config{} + } + + // By default talk over an UNIX socket. + if config.BaseURL == "" { + return &Client{ + baseURL: url.URL{ + Scheme: "http", + Host: "localhost", + }, + doer: &http.Client{ + Transport: &http.Transport{Dial: unixDialer(config.Socket)}, + }, + disableAuth: config.DisableAuth, + } + } + + baseURL, err := url.Parse(config.BaseURL) + if err != nil { + panic(fmt.Sprintf("cannot parse server base URL: %q (%v)", config.BaseURL, err)) + } + return &Client{ + baseURL: *baseURL, + doer: &http.Client{}, + disableAuth: config.DisableAuth, + } +} + +func (client *Client) setAuthorization(req *http.Request) error { + user, err := readAuthData() + if os.IsNotExist(err) { + return nil + } + if err != nil { + return err + } + + var buf bytes.Buffer + fmt.Fprintf(&buf, `Macaroon root="%s"`, user.Macaroon) + for _, discharge := range user.Discharges { + fmt.Fprintf(&buf, `, discharge="%s"`, discharge) + } + req.Header.Set("Authorization", buf.String()) + return nil +} + +type RequestError struct{ error } + +func (e RequestError) Error() string { + return fmt.Sprintf("cannot build request: %v", e.error) +} + +type AuthorizationError struct{ error } + +func (e AuthorizationError) Error() string { + return fmt.Sprintf("cannot add authorization: %v", e.error) +} + +type ConnectionError struct{ error } + +func (e ConnectionError) Error() string { + return fmt.Sprintf("cannot communicate with server: %v", e.error) +} + +// raw performs a request and returns the resulting http.Response and +// error you usually only need to call this directly if you expect the +// response to not be JSON, otherwise you'd call Do(...) instead. +func (client *Client) raw(method, urlpath string, query url.Values, headers map[string]string, body io.Reader) (*http.Response, error) { + // fake a url to keep http.Client happy + u := client.baseURL + u.Path = path.Join(client.baseURL.Path, urlpath) + u.RawQuery = query.Encode() + req, err := http.NewRequest(method, u.String(), body) + if err != nil { + return nil, RequestError{err} + } + + for key, value := range headers { + req.Header.Set(key, value) + } + + if !client.disableAuth { + // set Authorization header if there are user's credentials + err = client.setAuthorization(req) + if err != nil { + return nil, AuthorizationError{err} + } + } + + rsp, err := client.doer.Do(req) + if err != nil { + return nil, ConnectionError{err} + } + + return rsp, nil +} + +var ( + doRetry = 250 * time.Millisecond + doTimeout = 5 * time.Second +) + +// MockDoRetry mocks the delays used by the do retry loop. +func MockDoRetry(retry, timeout time.Duration) (restore func()) { + oldRetry := doRetry + oldTimeout := doTimeout + doRetry = retry + doTimeout = timeout + return func() { + doRetry = oldRetry + doTimeout = oldTimeout + } +} + +// do performs a request and decodes the resulting json into the given +// value. It's low-level, for testing/experimenting only; you should +// usually use a higher level interface that builds on this. +func (client *Client) do(method, path string, query url.Values, headers map[string]string, body io.Reader, v interface{}) error { + retry := time.NewTicker(doRetry) + defer retry.Stop() + timeout := time.After(doTimeout) + var rsp *http.Response + var err error + for { | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/client/client_test.go ^ |
| @@ -0,0 +1,444 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2015-2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package client_test + +import ( + "errors" + "fmt" + "io/ioutil" + "net" + "net/http" + "net/http/httptest" + "os" + "path/filepath" + "strings" + "testing" + "time" + + . "gopkg.in/check.v1" + + "github.com/snapcore/snapd/client" + "github.com/snapcore/snapd/dirs" +) + +// Hook up check.v1 into the "go test" runner +func Test(t *testing.T) { TestingT(t) } + +type clientSuite struct { + cli *client.Client + req *http.Request + reqs []*http.Request + rsp string + rsps []string + err error + doCalls int + header http.Header + status int +} + +var _ = Suite(&clientSuite{}) + +func (cs *clientSuite) SetUpTest(c *C) { + os.Setenv(client.TestAuthFileEnvKey, filepath.Join(c.MkDir(), "auth.json")) + cs.cli = client.New(nil) + cs.cli.SetDoer(cs) + cs.err = nil + cs.req = nil + cs.reqs = nil + cs.rsp = "" + cs.rsps = nil + cs.req = nil + cs.header = nil + cs.status = http.StatusOK + cs.doCalls = 0 + + dirs.SetRootDir(c.MkDir()) +} + +func (cs *clientSuite) TearDownTest(c *C) { + os.Unsetenv(client.TestAuthFileEnvKey) +} + +func (cs *clientSuite) Do(req *http.Request) (*http.Response, error) { + cs.req = req + cs.reqs = append(cs.reqs, req) + body := cs.rsp + if cs.doCalls < len(cs.rsps) { + body = cs.rsps[cs.doCalls] + } + rsp := &http.Response{ + Body: ioutil.NopCloser(strings.NewReader(body)), + Header: cs.header, + StatusCode: cs.status, + } + cs.doCalls++ + return rsp, cs.err +} + +func (cs *clientSuite) TestNewPanics(c *C) { + c.Assert(func() { + client.New(&client.Config{BaseURL: ":"}) + }, PanicMatches, `cannot parse server base URL: ":" \(parse :: missing protocol scheme\)`) +} + +func (cs *clientSuite) TestClientDoReportsErrors(c *C) { + restore := client.MockDoRetry(10*time.Millisecond, 100*time.Millisecond) + defer restore() + cs.err = errors.New("ouchie") + err := cs.cli.Do("GET", "/", nil, nil, nil) + c.Check(err, ErrorMatches, "cannot communicate with server: ouchie") + if cs.doCalls < 2 { + c.Fatalf("do did not retry") + } +} + +func (cs *clientSuite) TestClientWorks(c *C) { + var v []int + cs.rsp = `[1,2]` + reqBody := ioutil.NopCloser(strings.NewReader("")) + err := cs.cli.Do("GET", "/this", nil, reqBody, &v) + c.Check(err, IsNil) + c.Check(v, DeepEquals, []int{1, 2}) + c.Assert(cs.req, NotNil) + c.Assert(cs.req.URL, NotNil) + c.Check(cs.req.Method, Equals, "GET") + c.Check(cs.req.Body, Equals, reqBody) + c.Check(cs.req.URL.Path, Equals, "/this") +} + +func (cs *clientSuite) TestClientDefaultsToNoAuthorization(c *C) { + os.Setenv(client.TestAuthFileEnvKey, filepath.Join(c.MkDir(), "json")) + defer os.Unsetenv(client.TestAuthFileEnvKey) + + var v string + _ = cs.cli.Do("GET", "/this", nil, nil, &v) + c.Assert(cs.req, NotNil) + authorization := cs.req.Header.Get("Authorization") + c.Check(authorization, Equals, "") +} + +func (cs *clientSuite) TestClientSetsAuthorization(c *C) { + os.Setenv(client.TestAuthFileEnvKey, filepath.Join(c.MkDir(), "json")) + defer os.Unsetenv(client.TestAuthFileEnvKey) + + mockUserData := client.User{ + Macaroon: "macaroon", + Discharges: []string{"discharge"}, + } + err := client.TestWriteAuth(mockUserData) + c.Assert(err, IsNil) + + var v string + _ = cs.cli.Do("GET", "/this", nil, nil, &v) + authorization := cs.req.Header.Get("Authorization") + c.Check(authorization, Equals, `Macaroon root="macaroon", discharge="discharge"`) +} + +func (cs *clientSuite) TestClientHonorsDisableAuth(c *C) { + os.Setenv(client.TestAuthFileEnvKey, filepath.Join(c.MkDir(), "json")) + defer os.Unsetenv(client.TestAuthFileEnvKey) + + mockUserData := client.User{ + Macaroon: "macaroon", + Discharges: []string{"discharge"}, + } + err := client.TestWriteAuth(mockUserData) + c.Assert(err, IsNil) + + var v string + cli := client.New(&client.Config{DisableAuth: true}) + cli.SetDoer(cs) + _ = cli.Do("GET", "/this", nil, nil, &v) + authorization := cs.req.Header.Get("Authorization") + c.Check(authorization, Equals, "") +} + +func (cs *clientSuite) TestClientSysInfo(c *C) { + cs.rsp = `{"type": "sync", "result": + {"series": "16", + "version": "2", + "os-release": {"id": "ubuntu", "version-id": "16.04"}, + "on-classic": true}}` + sysInfo, err := cs.cli.SysInfo() + c.Check(err, IsNil) + c.Check(sysInfo, DeepEquals, &client.SysInfo{ + Version: "2", + Series: "16", + OSRelease: client.OSRelease{ + ID: "ubuntu", + VersionID: "16.04", + }, + OnClassic: true, + }) +} + +func (cs *clientSuite) TestServerVersion(c *C) { + cs.rsp = `{"type": "sync", "result": + {"series": "16", + "version": "2", + "os-release": {"id": "zyggy", "version-id": "123"}}}` + version, err := cs.cli.ServerVersion() + c.Check(err, IsNil) + c.Check(version, DeepEquals, &client.ServerVersion{ | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/conf.go ^ |
| (renamed from snapd-2.23.5/client/conf.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/conf_test.go ^ |
| (renamed from snapd-2.23.5/client/conf_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/export_test.go ^ |
| (renamed from snapd-2.23.5/client/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/icons.go ^ |
| (renamed from snapd-2.23.5/client/icons.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/icons_test.go ^ |
| (renamed from snapd-2.23.5/client/icons_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/interfaces.go ^ |
| (renamed from snapd-2.23.5/client/interfaces.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/interfaces_test.go ^ |
| (renamed from snapd-2.23.5/client/interfaces_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/login.go ^ |
| (renamed from snapd-2.23.5/client/login.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/login_test.go ^ |
| (renamed from snapd-2.23.5/client/login_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/packages.go ^ |
| (renamed from snapd-2.23.5/client/packages.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/packages_test.go ^ |
| (renamed from snapd-2.23.5/client/packages_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/snap_op.go ^ |
| (renamed from snapd-2.23.5/client/snap_op.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/snap_op_test.go ^ |
| (renamed from snapd-2.23.5/client/snap_op_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/snapctl.go ^ |
| (renamed from snapd-2.23.5/client/snapctl.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/client/snapctl_test.go ^ |
| (renamed from snapd-2.23.5/client/snapctl_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/.indent.pro ^ |
| (renamed from snapd-2.23.5/cmd/.indent.pro) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/Makefile.am ^ |
| (renamed from snapd-2.23.5/cmd/Makefile.am) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/autogen.sh ^ |
| (renamed from snapd-2.23.5/cmd/autogen.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/cmd.go ^ |
| (renamed from snapd-2.23.5/cmd/cmd.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/configure.ac ^ |
| (renamed from snapd-2.23.5/cmd/configure.ac) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/decode-mount-opts ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/decode-mount-opts/decode-mount-opts.c ^ |
| (renamed from snapd-2.23.5/cmd/decode-mount-opts/decode-mount-opts.c) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/classic-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/classic-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/classic.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/classic.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/classic.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/classic.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/cleanup-funcs-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/cleanup-funcs-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/cleanup-funcs.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/cleanup-funcs.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/cleanup-funcs.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/cleanup-funcs.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/error-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/error-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/error.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/error.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/error.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/error.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/fault-injection-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/fault-injection-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/fault-injection.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/fault-injection.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/fault-injection.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/fault-injection.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/mount-opt-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/mount-opt-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/mount-opt.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/mount-opt.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/mount-opt.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/mount-opt.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/mountinfo-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/mountinfo-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/mountinfo.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/mountinfo.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/mountinfo.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/mountinfo.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/privs-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/privs-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/privs.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/privs.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/privs.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/privs.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/secure-getenv-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/secure-getenv-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/secure-getenv.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/secure-getenv.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/secure-getenv.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/secure-getenv.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/snap-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/snap-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/snap.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/snap.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/snap.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/snap.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/string-utils-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/string-utils-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/string-utils.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/string-utils.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/string-utils.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/string-utils.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/unit-tests-main.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/unit-tests-main.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/unit-tests.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/unit-tests.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/unit-tests.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/unit-tests.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/utils-test.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/utils-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/utils.c ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/utils.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/libsnap-confine-private/utils.h ^ |
| (renamed from snapd-2.23.5/cmd/libsnap-confine-private/utils.h) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/80-snappy-assign.rules ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/80-snappy-assign.rules) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/PORTING ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/PORTING) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/README.mount_namespace ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/README.mount_namespace) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/README.nvidia ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/README.nvidia) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/README.syscalls ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/README.syscalls) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/apparmor-support.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/apparmor-support.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/apparmor-support.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/apparmor-support.h) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/misc ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/misc/0001-Add-printk-based-debugging-to-pivot_root.patch ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/misc/0001-Add-printk-based-debugging-to-pivot_root.patch) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/mount-support-nvidia.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/mount-support-nvidia.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/mount-support-nvidia.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/mount-support-nvidia.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/mount-support-test.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/mount-support-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/mount-support.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/mount-support.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/mount-support.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/mount-support.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/ns-support-test.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/ns-support-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/ns-support.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/ns-support.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/ns-support.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/ns-support.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/quirks.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/quirks.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/quirks.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/quirks.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/seccomp-support.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/seccomp-support.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/seccomp-support.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/seccomp-support.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/snap-confine-args-test.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/snap-confine-args-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/snap-confine-args.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/snap-confine-args.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/snap-confine-args.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/snap-confine-args.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/snap-confine.apparmor.in ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/snap-confine.apparmor.in) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/snap-confine.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/snap-confine.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/snap-confine.rst ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/snap-confine.rst) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/snappy-app-dev ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/snappy-app-dev) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/data ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/data/apt-keys ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/data/apt-keys/README.md ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/data/apt-keys/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/data/apt-keys/sbuild-key.pub ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/data/apt-keys/sbuild-key.pub) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/data/apt-keys/sbuild-key.sec ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/data/apt-keys/sbuild-key.sec) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/distros ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/distros/debian. ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/distros/debian.) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/distros/debian.common ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/distros/debian.common) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/distros/ubuntu.14.04 ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/distros/ubuntu.14.04) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/distros/ubuntu.16.04 ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/distros/ubuntu.16.04) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/distros/ubuntu.16.10 ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/distros/ubuntu.16.10) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/distros/ubuntu.common ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/distros/ubuntu.common) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/cgroup-used ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/cgroup-used/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/cgroup-used/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/core-is-preferred ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/core-is-preferred/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/core-is-preferred/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/debug-flags ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/debug-flags/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/debug-flags/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/discard-inexisting-ns ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/discard-inexisting-ns/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/discard-inexisting-ns/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/discard-ns ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/discard-ns/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/discard-ns/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/hostfs-created-on-demand ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/hostfs-created-on-demand/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/hostfs-created-on-demand/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/media-sharing ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/media-sharing/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/media-sharing/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/media-visible-in-devmode ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/media-visible-in-devmode/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/media-visible-in-devmode/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.linode.amd64.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.linode.amd64.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.linode.i386.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.linode.i386.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.qemu.amd64.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.qemu.i386.json) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.core.qemu.i386.json ^ |
| @@ -0,0 +1,808 @@ +[ + { + "fs_type": "squashfs", + "mount_opts": "rw,relatime", + "mount_point": "/", + "mount_src": "/dev/remapped-loop0", + "opt_fields": [ + "master:renumbered/0" + ], + "root_dir": "/" + }, + { + "fs_type": "devtmpfs", + "mount_opts": "rw,nosuid,relatime", + "mount_point": "/dev", + "mount_src": "udev", + "opt_fields": [ + "master:renumbered/1" + ], + "root_dir": "/" + }, + { + "fs_type": "hugetlbfs", + "mount_opts": "rw,relatime", + "mount_point": "/dev/hugepages", + "mount_src": "hugetlbfs", + "opt_fields": [ + "master:renumbered/2" + ], + "root_dir": "/" + }, + { + "fs_type": "mqueue", + "mount_opts": "rw,relatime", + "mount_point": "/dev/mqueue", + "mount_src": "mqueue", + "opt_fields": [ + "master:renumbered/3" + ], + "root_dir": "/" + }, + { + "fs_type": "devpts", + "mount_opts": "rw,relatime", + "mount_point": "/dev/ptmx", + "mount_src": "devpts", + "opt_fields": [], + "root_dir": "/ptmx" + }, + { + "fs_type": "devpts", + "mount_opts": "rw,nosuid,noexec,relatime", + "mount_point": "/dev/pts", + "mount_src": "devpts", + "opt_fields": [ + "master:renumbered/4" + ], + "root_dir": "/" + }, + { + "fs_type": "devpts", + "mount_opts": "rw,relatime", + "mount_point": "/dev/pts", + "mount_src": "devpts", + "opt_fields": [], + "root_dir": "/" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,nodev", + "mount_point": "/dev/shm", + "mount_src": "tmpfs", + "opt_fields": [ + "master:renumbered/5" + ], + "root_dir": "/" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/etc", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "master:renumbered/6" + ], + "root_dir": "/etc" + }, + { + "fs_type": "squashfs", + "mount_opts": "rw,relatime", + "mount_point": "/etc/alternatives", + "mount_src": "/dev/remapped-loop0", + "opt_fields": [ + "master:renumbered/0" + ], + "root_dir": "/etc/alternatives" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/home", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "master:renumbered/6" + ], + "root_dir": "/home" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/lib/modules", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "master:renumbered/6" + ], + "root_dir": "/lib/modules" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/media", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "shared:renumbered/7" + ], + "root_dir": "/media" + }, + { + "fs_type": "proc", + "mount_opts": "rw,nosuid,nodev,noexec,relatime", + "mount_point": "/proc", + "mount_src": "proc", + "opt_fields": [ + "master:renumbered/8" + ], + "root_dir": "/" + }, + { + "fs_type": "autofs", + "mount_opts": "rw,relatime", + "mount_point": "/proc/sys/fs/binfmt_misc", + "mount_src": "systemd-1", + "opt_fields": [ + "master:renumbered/9" + ], + "root_dir": "/" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/root", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "master:renumbered/6" + ], + "root_dir": "/root" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,noexec,relatime", + "mount_point": "/run", + "mount_src": "tmpfs", + "opt_fields": [ + "master:renumbered/10" + ], + "root_dir": "/" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,nodev,noexec,relatime", + "mount_point": "/run/lock", + "mount_src": "tmpfs", + "opt_fields": [ + "master:renumbered/11" + ], + "root_dir": "/" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,noexec,relatime", + "mount_point": "/run/snapd/ns", + "mount_src": "tmpfs", + "opt_fields": [], + "root_dir": "/snapd/ns" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,nodev,relatime", + "mount_point": "/run/user/NUMBER", + "mount_src": "tmpfs", + "opt_fields": [ + "master:renumbered/12" + ], + "root_dir": "/" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/snap", | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.linode.amd64.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.linode.amd64.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.linode.i386.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.linode.i386.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.qemu.amd64.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.qemu.i386.json) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.classic.ubuntu-core.qemu.i386.json ^ |
| @@ -0,0 +1,798 @@ +[ + { + "fs_type": "squashfs", + "mount_opts": "rw,relatime", + "mount_point": "/", + "mount_src": "/dev/remapped-loop0", + "opt_fields": [ + "master:renumbered/0" + ], + "root_dir": "/" + }, + { + "fs_type": "devtmpfs", + "mount_opts": "rw,nosuid,relatime", + "mount_point": "/dev", + "mount_src": "udev", + "opt_fields": [ + "master:renumbered/1" + ], + "root_dir": "/" + }, + { + "fs_type": "hugetlbfs", + "mount_opts": "rw,relatime", + "mount_point": "/dev/hugepages", + "mount_src": "hugetlbfs", + "opt_fields": [ + "master:renumbered/2" + ], + "root_dir": "/" + }, + { + "fs_type": "mqueue", + "mount_opts": "rw,relatime", + "mount_point": "/dev/mqueue", + "mount_src": "mqueue", + "opt_fields": [ + "master:renumbered/3" + ], + "root_dir": "/" + }, + { + "fs_type": "devpts", + "mount_opts": "rw,relatime", + "mount_point": "/dev/ptmx", + "mount_src": "devpts", + "opt_fields": [], + "root_dir": "/ptmx" + }, + { + "fs_type": "devpts", + "mount_opts": "rw,nosuid,noexec,relatime", + "mount_point": "/dev/pts", + "mount_src": "devpts", + "opt_fields": [ + "master:renumbered/4" + ], + "root_dir": "/" + }, + { + "fs_type": "devpts", + "mount_opts": "rw,relatime", + "mount_point": "/dev/pts", + "mount_src": "devpts", + "opt_fields": [], + "root_dir": "/" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,nodev", + "mount_point": "/dev/shm", + "mount_src": "tmpfs", + "opt_fields": [ + "master:renumbered/5" + ], + "root_dir": "/" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/etc", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "master:renumbered/6" + ], + "root_dir": "/etc" + }, + { + "fs_type": "squashfs", + "mount_opts": "rw,relatime", + "mount_point": "/etc/alternatives", + "mount_src": "/dev/remapped-loop0", + "opt_fields": [ + "master:renumbered/0" + ], + "root_dir": "/etc/alternatives" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/home", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "master:renumbered/6" + ], + "root_dir": "/home" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/lib/modules", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "master:renumbered/6" + ], + "root_dir": "/lib/modules" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/media", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "shared:renumbered/7" + ], + "root_dir": "/media" + }, + { + "fs_type": "proc", + "mount_opts": "rw,nosuid,nodev,noexec,relatime", + "mount_point": "/proc", + "mount_src": "proc", + "opt_fields": [ + "master:renumbered/8" + ], + "root_dir": "/" + }, + { + "fs_type": "autofs", + "mount_opts": "rw,relatime", + "mount_point": "/proc/sys/fs/binfmt_misc", + "mount_src": "systemd-1", + "opt_fields": [ + "master:renumbered/9" + ], + "root_dir": "/" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/root", + "mount_src": "/dev/BLOCK1", + "opt_fields": [ + "master:renumbered/6" + ], + "root_dir": "/root" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,noexec,relatime", + "mount_point": "/run", + "mount_src": "tmpfs", + "opt_fields": [ + "master:renumbered/10" + ], + "root_dir": "/" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,nodev,noexec,relatime", + "mount_point": "/run/lock", + "mount_src": "tmpfs", + "opt_fields": [ + "master:renumbered/11" + ], + "root_dir": "/" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,noexec,relatime", + "mount_point": "/run/snapd/ns", + "mount_src": "tmpfs", + "opt_fields": [], + "root_dir": "/snapd/ns" + }, + { + "fs_type": "tmpfs", + "mount_opts": "rw,nosuid,nodev,relatime", + "mount_point": "/run/user/NUMBER", + "mount_src": "tmpfs", + "opt_fields": [ + "master:renumbered/12" + ], + "root_dir": "/" + }, + { + "fs_type": "ext4", + "mount_opts": "rw,relatime", + "mount_point": "/snap", | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.core.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.core.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.core.linode.json ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/expected.core.linode.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/process.py ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/process.py) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/snap-arch.py ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/snap-arch.py) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-layout/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-layout/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-sharing ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-ns-sharing/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-ns-sharing/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-bin-snap-destination ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-bin-snap-destination/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-bin-snap-destination/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-bin-snap-source ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-bin-snap-source/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-bin-snap-source/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-missing-dst ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-missing-dst/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-missing-dst/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-missing-src ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-missing-src/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-missing-src/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-mount-tmpfs ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-mount-tmpfs/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-mount-tmpfs/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-ro-mount ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-ro-mount/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-ro-mount/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-rw-mount ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-profiles-rw-mount/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-profiles-rw-mount/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-usr-src ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/mount-usr-src/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/mount-usr-src/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/test-seccomp-compat ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/test-seccomp-compat/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/test-seccomp-compat/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/test-snap-runs ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/test-snap-runs/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/test-snap-runs/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/ubuntu-core-launcher-exists ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/ubuntu-core-launcher-exists/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/ubuntu-core-launcher-exists/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/user-data-dir-created ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/user-data-dir-created/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/user-data-dir-created/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/user-xdg-runtime-dir-created ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/user-xdg-runtime-dir-created/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/user-xdg-runtime-dir-created/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/version-switch ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/main/version-switch/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/main/version-switch/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/regression ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/regression/lp-1599608 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/regression/lp-1599608/task.yaml ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/regression/lp-1599608/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/release.sh ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/release.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/spread-tests/spread-prepare.sh ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/spread-tests/spread-prepare.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/common.sh ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/common.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_args ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_args) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_args_clone ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_args_clone) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_args_null ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_args_null) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_args_prctl ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_args_prctl) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_args_prio ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_args_prio) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_args_quotactl ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_args_quotactl) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_args_socket ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_args_socket) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_args_termios ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_args_termios) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_length ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_length) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_bad_seccomp_filter_missing_trailing_newline ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_bad_seccomp_filter_missing_trailing_newline) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_complain ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_complain) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_complain_missed ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_complain_missed) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_noprofile ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_noprofile) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions_working ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions_working) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions_working_args ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions_working_args) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions_working_args_clone ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions_working_args_clone) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions_working_args_prctl ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions_working_args_prctl) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions_working_args_prio ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions_working_args_prio) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions_working_args_quotactl ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions_working_args_quotactl) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions_working_args_socket ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions_working_args_socket) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_restrictions_working_args_termios ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_restrictions_working_args_termios) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_unrestricted ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_unrestricted) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_unrestricted_missed ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_unrestricted_missed) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/tests/test_whitelist ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/tests/test_whitelist) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/udev-support.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/udev-support.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/udev-support.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/udev-support.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/user-support.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/user-support.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-confine/user-support.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-confine/user-support.h) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-discard-ns ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-discard-ns/snap-discard-ns.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-discard-ns/snap-discard-ns.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-discard-ns/snap-discard-ns.rst ^ |
| (renamed from snapd-2.23.5/cmd/snap-discard-ns/snap-discard-ns.rst) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-exec ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-exec/main.go ^ |
| (renamed from snapd-2.23.5/cmd/snap-exec/main.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-exec/main_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap-exec/main_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/mount-entry-test.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/mount-entry-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/mount-entry.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/mount-entry.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/mount-entry.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/mount-entry.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/snap-update-ns.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/snap-update-ns.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/snap-update-ns.rst ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/snap-update-ns.rst) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/test-data.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/test-data.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/test-data.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/test-data.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/test-utils.c ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/test-utils.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap-update-ns/test-utils.h ^ |
| (renamed from snapd-2.23.5/cmd/snap-update-ns/test-utils.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_abort.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_abort.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_ack.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_ack.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_alias.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_alias.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_alias_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_alias_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_aliases.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_aliases.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_aliases_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_aliases_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_auto_import.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_auto_import.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_auto_import_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_auto_import_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_booted.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_booted.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_buy.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_buy.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_buy_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_buy_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_changes.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_changes.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_changes_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_changes_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_connect.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_connect.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_connect_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_connect_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_create_key.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_create_key.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_create_key_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_create_key_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_create_user.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_create_user.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_create_user_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_create_user_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_delete_key.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_delete_key.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_delete_key_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_delete_key_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_disconnect.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_disconnect.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_disconnect_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_disconnect_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_download.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_download.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_experimental.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_experimental.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_export_key.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_export_key.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_export_key_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_export_key_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_find.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_find.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_find_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_find_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_first_boot.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_first_boot.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_get.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_get.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_get_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_get_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_help.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_help.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_help_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_help_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_info.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_info.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_info_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_info_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_interfaces.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_interfaces.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_interfaces_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_interfaces_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_keys.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_keys.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_keys_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_keys_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_known.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_known.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_known_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_known_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_list.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_list.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_list_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_list_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_login.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_login.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_login_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_login_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_logout.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_logout.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_managed.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_managed.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_managed_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_managed_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_prepare_image.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_prepare_image.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_run.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_run.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_run_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_run_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_set.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_set.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_set_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_set_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_shell.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_shell.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_sign.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_sign.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_sign_build.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_sign_build.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_sign_build_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_sign_build_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_sign_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_sign_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_snap_op.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_snap_op.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_snap_op_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_snap_op_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_unalias.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_unalias.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_unalias_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_unalias_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_version.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_version.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_version_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_version_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_watch.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_watch.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/cmd_watch_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/cmd_watch_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/complete.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/complete.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/export_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/gnupg2_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/gnupg2_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/interfaces_common.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/interfaces_common.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/interfaces_common_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/interfaces_common_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/main.go ^ |
| @@ -0,0 +1,315 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2014-2015 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package main + +import ( + "fmt" + "io" + "os" + "os/user" + "path/filepath" + "strings" + "unicode" + + "github.com/jessevdk/go-flags" + + "golang.org/x/crypto/ssh/terminal" + + "github.com/snapcore/snapd/client" + "github.com/snapcore/snapd/cmd" + "github.com/snapcore/snapd/dirs" + "github.com/snapcore/snapd/httputil" + "github.com/snapcore/snapd/i18n" + "github.com/snapcore/snapd/logger" + "github.com/snapcore/snapd/osutil" +) + +func init() { + // set User-Agent for when 'snap' talks to the store directly (snap download etc...) + httputil.SetUserAgentFromVersion(cmd.Version, "snap") +} + +// Standard streams, redirected for testing. +var ( + Stdin io.Reader = os.Stdin + Stdout io.Writer = os.Stdout + Stderr io.Writer = os.Stderr + ReadPassword = terminal.ReadPassword +) + +type options struct { + Version func() `long:"version"` +} + +type argDesc struct { + name string + desc string +} + +var optionsData options + +// ErrExtraArgs is returned if extra arguments to a command are found +var ErrExtraArgs = fmt.Errorf(i18n.G("too many arguments for command")) + +// cmdInfo holds information needed to call parser.AddCommand(...). +type cmdInfo struct { + name, shortHelp, longHelp string + builder func() flags.Commander + hidden bool + optDescs map[string]string + argDescs []argDesc +} + +// commands holds information about all non-experimental commands. +var commands []*cmdInfo + +// experimentalCommands holds information about all experimental commands. +var experimentalCommands []*cmdInfo + +// addCommand replaces parser.addCommand() in a way that is compatible with +// re-constructing a pristine parser. +func addCommand(name, shortHelp, longHelp string, builder func() flags.Commander, optDescs map[string]string, argDescs []argDesc) *cmdInfo { + info := &cmdInfo{ + name: name, + shortHelp: shortHelp, + longHelp: longHelp, + builder: builder, + optDescs: optDescs, + argDescs: argDescs, + } + commands = append(commands, info) + return info +} + +// addExperimentalCommand replaces parser.addCommand() in a way that is +// compatible with re-constructing a pristine parser. It is meant for +// adding experimental commands. +func addExperimentalCommand(name, shortHelp, longHelp string, builder func() flags.Commander) *cmdInfo { + info := &cmdInfo{ + name: name, + shortHelp: shortHelp, + longHelp: longHelp, + builder: builder, + } + experimentalCommands = append(experimentalCommands, info) + return info +} + +type parserSetter interface { + setParser(*flags.Parser) +} + +func lintDesc(cmdName, optName, desc, origDesc string) { + if len(optName) == 0 { + logger.Panicf("option on %q has no name", cmdName) + } + if len(origDesc) != 0 { + logger.Panicf("description of %s's %q of %q set from tag (=> no i18n)", cmdName, optName, origDesc) + } + if len(desc) > 0 { + if !unicode.IsUpper(([]rune)(desc)[0]) { + logger.Panicf("description of %s's %q not uppercase: %q", cmdName, optName, desc) + } + } +} + +func lintArg(cmdName, optName, desc, origDesc string) { + lintDesc(cmdName, optName, desc, origDesc) + if optName[0] != '<' || optName[len(optName)-1] != '>' { + logger.Panicf("argument %q's %q should have <>s", cmdName, optName) + } +} + +// Parser creates and populates a fresh parser. +// Since commands have local state a fresh parser is required to isolate tests +// from each other. +func Parser() *flags.Parser { + optionsData.Version = func() { + printVersions() + panic(&exitStatus{0}) + } + parser := flags.NewParser(&optionsData, flags.HelpFlag|flags.PassDoubleDash|flags.PassAfterNonOption) + parser.ShortDescription = i18n.G("Tool to interact with snaps") + parser.LongDescription = i18n.G(` +Install, configure, refresh and remove snap packages. Snaps are +'universal' packages that work across many different Linux systems, +enabling secure distribution of the latest apps and utilities for +cloud, servers, desktops and the internet of things. + +This is the CLI for snapd, a background service that takes care of +snaps on the system. Start with 'snap list' to see installed snaps. +`) + parser.FindOptionByLongName("version").Description = i18n.G("Print the version and exit") + + // Add all regular commands + for _, c := range commands { + obj := c.builder() + if x, ok := obj.(parserSetter); ok { + x.setParser(parser) + } + + cmd, err := parser.AddCommand(c.name, c.shortHelp, strings.TrimSpace(c.longHelp), obj) + if err != nil { + logger.Panicf("cannot add command %q: %v", c.name, err) + } + cmd.Hidden = c.hidden + + opts := cmd.Options() + if c.optDescs != nil && len(opts) != len(c.optDescs) { + logger.Panicf("wrong number of option descriptions for %s: expected %d, got %d", c.name, len(opts), len(c.optDescs)) + } + for _, opt := range opts { + name := opt.LongName + if name == "" { + name = string(opt.ShortName) + } + desc, ok := c.optDescs[name] + if !(c.optDescs == nil || ok) { + logger.Panicf("%s missing description for %s", c.name, name) + } + lintDesc(c.name, name, desc, opt.Description) + if desc != "" { + opt.Description = desc + } + } + + args := cmd.Args() + if c.argDescs != nil && len(args) != len(c.argDescs) { + logger.Panicf("wrong number of argument descriptions for %s: expected %d, got %d", c.name, len(args), len(c.argDescs)) + } + for i, arg := range args { + name, desc := arg.Name, "" + if c.argDescs != nil { | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/main_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/main_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/notes.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/notes.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/notes_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snap/notes_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/test-data ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/test-data/pubring.gpg ^ |
| (renamed from snapd-2.23.5/cmd/snap/test-data/pubring.gpg) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/test-data/secring.gpg ^ |
| (renamed from snapd-2.23.5/cmd/snap/test-data/secring.gpg) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snap/test-data/trustdb.gpg ^ |
| (renamed from snapd-2.23.5/cmd/snap/test-data/trustdb.gpg) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snapctl ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snapctl/main.go ^ |
| @@ -0,0 +1,63 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2014-2015 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package main + +import ( + "fmt" + "os" + + "github.com/snapcore/snapd/client" + "github.com/snapcore/snapd/dirs" +) + +var clientConfig = client.Config{ + // snapctl should not try to read $HOME/.snap/auth.json, this will + // result in apparmor denials and configure task failures + // (LP: #1660941) + DisableAuth: true, + + // we need the less privileged snap socket in snapctl + Socket: dirs.SnapSocket, +} + +func main() { + stdout, stderr, err := run() + if err != nil { + fmt.Fprintf(os.Stderr, "error: %s\n", err) + os.Exit(1) + } + + if stdout != nil { + os.Stdout.Write(stdout) + } + + if stderr != nil { + os.Stderr.Write(stderr) + } +} + +func run() (stdout, stderr []byte, err error) { + cli := client.New(&clientConfig) + + return cli.RunSnapctl(&client.SnapCtlOptions{ + ContextID: os.Getenv("SNAP_CONTEXT"), + Args: os.Args[1:], + }) +} | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snapctl/main_test.go ^ |
| (renamed from snapd-2.23.5/cmd/snapctl/main_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snapd ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/snapd/main.go ^ |
| (renamed from snapd-2.23.5/cmd/snapd/main.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/system-shutdown ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/system-shutdown/system-shutdown-utils-test.c ^ |
| (renamed from snapd-2.23.5/cmd/system-shutdown/system-shutdown-utils-test.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/system-shutdown/system-shutdown-utils.c ^ |
| (renamed from snapd-2.23.5/cmd/system-shutdown/system-shutdown-utils.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/system-shutdown/system-shutdown-utils.h ^ |
| (renamed from snapd-2.23.5/cmd/system-shutdown/system-shutdown-utils.h) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/system-shutdown/system-shutdown.c ^ |
| (renamed from snapd-2.23.5/cmd/system-shutdown/system-shutdown.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/cmd/version.go ^ |
| (renamed from snapd-2.23.5/cmd/version.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/api.go ^ |
| @@ -0,0 +1,2313 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2015-2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package daemon + +import ( + "encoding/json" + "errors" + "fmt" + "io" + "io/ioutil" + "mime" + "mime/multipart" + "net/http" + "os" + "os/user" + "path/filepath" + "regexp" + "strconv" + "strings" + "time" + + "github.com/gorilla/mux" + "github.com/jessevdk/go-flags" + + "github.com/snapcore/snapd/asserts" + "github.com/snapcore/snapd/asserts/snapasserts" + "github.com/snapcore/snapd/client" + "github.com/snapcore/snapd/dirs" + "github.com/snapcore/snapd/i18n/dumb" + "github.com/snapcore/snapd/interfaces" + "github.com/snapcore/snapd/logger" + "github.com/snapcore/snapd/osutil" + "github.com/snapcore/snapd/overlord/assertstate" + "github.com/snapcore/snapd/overlord/auth" + "github.com/snapcore/snapd/overlord/configstate" + "github.com/snapcore/snapd/overlord/configstate/config" + "github.com/snapcore/snapd/overlord/devicestate" + "github.com/snapcore/snapd/overlord/hookstate/ctlcmd" + "github.com/snapcore/snapd/overlord/ifacestate" + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/progress" + "github.com/snapcore/snapd/release" + "github.com/snapcore/snapd/snap" + "github.com/snapcore/snapd/store" + "github.com/snapcore/snapd/strutil" +) + +var api = []*Command{ + rootCmd, + sysInfoCmd, + loginCmd, + logoutCmd, + appIconCmd, + findCmd, + snapsCmd, + snapCmd, + snapConfCmd, + interfacesCmd, + assertsCmd, + assertsFindManyCmd, + stateChangeCmd, + stateChangesCmd, + createUserCmd, + buyCmd, + readyToBuyCmd, + snapctlCmd, + usersCmd, + sectionsCmd, + aliasesCmd, +} + +var ( + rootCmd = &Command{ + Path: "/", + GuestOK: true, + GET: tbd, + } + + sysInfoCmd = &Command{ + Path: "/v2/system-info", + GuestOK: true, + GET: sysInfo, + } + + loginCmd = &Command{ + Path: "/v2/login", + POST: loginUser, + } + + logoutCmd = &Command{ + Path: "/v2/logout", + POST: logoutUser, + UserOK: true, + } + + appIconCmd = &Command{ + Path: "/v2/icons/{name}/icon", + UserOK: true, + GET: appIconGet, + } + + findCmd = &Command{ + Path: "/v2/find", + UserOK: true, + GET: searchStore, + } + + snapsCmd = &Command{ + Path: "/v2/snaps", + UserOK: true, + GET: getSnapsInfo, + POST: postSnaps, + } + + snapCmd = &Command{ + Path: "/v2/snaps/{name}", + UserOK: true, + GET: getSnapInfo, + POST: postSnap, + } + + snapConfCmd = &Command{ + Path: "/v2/snaps/{name}/conf", + GET: getSnapConf, + PUT: setSnapConf, + } + + interfacesCmd = &Command{ + Path: "/v2/interfaces", + UserOK: true, + GET: getInterfaces, + POST: changeInterfaces, + } + + // TODO: allow to post assertions for UserOK? they are verified anyway + assertsCmd = &Command{ + Path: "/v2/assertions", + POST: doAssert, + } + + assertsFindManyCmd = &Command{ + Path: "/v2/assertions/{assertType}", + UserOK: true, + GET: assertsFindMany, + } + + stateChangeCmd = &Command{ + Path: "/v2/changes/{id}", + UserOK: true, + GET: getChange, + POST: abortChange, + } + + stateChangesCmd = &Command{ + Path: "/v2/changes", + UserOK: true, + GET: getChanges, + } + + createUserCmd = &Command{ + Path: "/v2/create-user", + UserOK: false, + POST: postCreateUser, + } + + buyCmd = &Command{ + Path: "/v2/buy", + UserOK: false, + POST: postBuy, + } + + readyToBuyCmd = &Command{ + Path: "/v2/buy/ready", + UserOK: false, + GET: readyToBuy, + } + + snapctlCmd = &Command{ + Path: "/v2/snapctl", + SnapOK: true, + POST: runSnapctl, | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/api_mock_test.go ^ |
| (renamed from snapd-2.23.5/daemon/api_mock_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/api_test.go ^ |
| (renamed from snapd-2.23.5/daemon/api_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/daemon.go ^ |
| (renamed from snapd-2.23.5/daemon/daemon.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/daemon_test.go ^ |
| (renamed from snapd-2.23.5/daemon/daemon_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/response.go ^ |
| (renamed from snapd-2.23.5/daemon/response.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/response_test.go ^ |
| (renamed from snapd-2.23.5/daemon/response_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/snap.go ^ |
| (renamed from snapd-2.23.5/daemon/snap.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/ucrednet.go ^ |
| (renamed from snapd-2.23.5/daemon/ucrednet.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/daemon/ucrednet_test.go ^ |
| (renamed from snapd-2.23.5/daemon/ucrednet_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/data ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/data/completion ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/completion/snap ^ |
| (renamed from snapd-2.23.5/data/completion/snap) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/failure.txt ^ |
| (renamed from snapd-2.23.5/data/failure.txt) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/info ^ |
| (renamed from snapd-2.23.5/data/info) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/data/selinux ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/selinux/COPYING ^ |
| (renamed from snapd-2.23.5/data/selinux/COPYING) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/selinux/INSTALL.md ^ |
| (renamed from snapd-2.23.5/data/selinux/INSTALL.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/selinux/Makefile ^ |
| (renamed from snapd-2.23.5/data/selinux/Makefile) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/selinux/README.md ^ |
| (renamed from snapd-2.23.5/data/selinux/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/selinux/snappy.fc ^ |
| (renamed from snapd-2.23.5/data/selinux/snappy.fc) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/selinux/snappy.if ^ |
| (renamed from snapd-2.23.5/data/selinux/snappy.if) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/selinux/snappy.te ^ |
| (renamed from snapd-2.23.5/data/selinux/snappy.te) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/success.txt ^ |
| (renamed from snapd-2.23.5/data/success.txt) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/data/systemd ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/systemd/snapd.autoimport.service ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.autoimport.service) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/systemd/snapd.refresh.service ^ |
| (renamed from snapd-2.23.5/data/systemd/snapd.refresh.service) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/systemd/snapd.refresh.timer ^ |
| (renamed from snapd-2.23.5/data/systemd/snapd.refresh.timer) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/systemd/snapd.service ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.service) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/systemd/snapd.socket ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.socket) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/systemd/snapd.system-shutdown.service ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.system-shutdown.service) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/data/udev ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/data/udev/rules.d ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/data/udev/rules.d/66-snapd-autoimport.rules ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/snapd.autoimport.udev) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/debian ^ |
| +(symlink to packaging/ubuntu-16.04/) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/dirs ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/dirs/dirs.go ^ |
| (renamed from snapd-2.23.5/dirs/dirs.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/dirs/dirs_test.go ^ |
| (renamed from snapd-2.23.5/dirs/dirs_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/docs ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/docs/MOVED.md ^ |
| (renamed from snapd-2.23.5/docs/MOVED.md) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/errtracker ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/errtracker/errtracker.go ^ |
| (renamed from snapd-2.23.5/errtracker/errtracker.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/errtracker/errtracker_test.go ^ |
| (renamed from snapd-2.23.5/errtracker/errtracker_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/errtracker/export_test.go ^ |
| (renamed from snapd-2.23.5/errtracker/export_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/etc ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/etc/X11 ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/etc/X11/Xsession.d ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/etc/X11/Xsession.d/65snappy ^ |
| (renamed from snapd-2.23.5/etc/X11/Xsession.d/65snappy) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/etc/profile.d ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/etc/profile.d/apps-bin-path.sh ^ |
| (renamed from snapd-2.23.5/etc/profile.d/apps-bin-path.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/gen-coverage.sh ^ |
| (renamed from snapd-2.23.5/gen-coverage.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/generate-packaging-dir ^ |
| (renamed from snapd-2.23.5/generate-packaging-dir) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/get-deps.sh ^ |
| (renamed from snapd-2.23.5/get-deps.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil/export_test.go ^ |
| (renamed from snapd-2.23.5/httputil/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil/logger.go ^ |
| (renamed from snapd-2.23.5/httputil/logger.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil/logger_test.go ^ |
| (renamed from snapd-2.23.5/httputil/logger_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil/redirect17.go ^ |
| (renamed from snapd-2.23.5/httputil/redirect17.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil/redirect18.go ^ |
| (renamed from snapd-2.23.5/httputil/redirect18.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil/useragent.go ^ |
| (renamed from snapd-2.23.5/httputil/useragent.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil/useragent_test.go ^ |
| (renamed from snapd-2.23.5/httputil/useragent_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/httputil/withtestkeys.go ^ |
| (renamed from snapd-2.23.5/httputil/withtestkeys.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/i18n ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/i18n/dumb ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/i18n/dumb/dumb.go ^ |
| (renamed from snapd-2.23.5/i18n/dumb/dumb.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/i18n/i18n.go ^ |
| (renamed from snapd-2.23.5/i18n/i18n.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/i18n/i18n_test.go ^ |
| (renamed from snapd-2.23.5/i18n/i18n_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/i18n/xgettext-go ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/i18n/xgettext-go/main.go ^ |
| (renamed from snapd-2.23.5/i18n/xgettext-go/main.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/i18n/xgettext-go/main_test.go ^ |
| (renamed from snapd-2.23.5/i18n/xgettext-go/main_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/image ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/image/export_test.go ^ |
| (renamed from snapd-2.23.5/image/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/image/helpers.go ^ |
| (renamed from snapd-2.23.5/image/helpers.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/image/image.go ^ |
| (renamed from snapd-2.23.5/image/image.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/image/image_test.go ^ |
| (renamed from snapd-2.23.5/image/image_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/apparmor.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/apparmor.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/apparmor_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/apparmor_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/backend_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/backend_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/export_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/spec.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/spec.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/spec_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/spec_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/template.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/template.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/apparmor/template_vars.go ^ |
| (renamed from snapd-2.23.5/interfaces/apparmor/template_vars.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/backend.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/backends ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/backends/backends.go ^ |
| (renamed from snapd-2.23.5/interfaces/backends/backends.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/account_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/account_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/account_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/account_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/all.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/all.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/all_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/all_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/alsa.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/alsa.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/alsa_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/alsa_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/avahi_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/avahi_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/avahi_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/avahi_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/basedeclaration.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/basedeclaration.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/basedeclaration_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/basedeclaration_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/bluetooth_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/bluetooth_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/bluetooth_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/bluetooth_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/bluez.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/bluez.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/bluez_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/bluez_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/bool_file.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/bool_file.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/bool_file_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/bool_file_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/browser_support.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/browser_support.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/browser_support_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/browser_support_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/camera.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/camera.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/classic_support.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/classic_support.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/classic_support_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/classic_support_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/common.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/common.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/common_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/common_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/content.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/content.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/content_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/content_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/core_support.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/core_support.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/core_support_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/core_support_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/cups_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/cups_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/dbus.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/dbus.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/dbus_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/dbus_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/dcdbas_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/dcdbas_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/dcdbas_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/dcdbas_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/docker.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/docker.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/docker_support.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/docker_support.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/docker_support_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/docker_support_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/docker_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/docker_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/export_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/firewall_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/firewall_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/firewall_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/firewall_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/framebuffer.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/framebuffer.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/framebuffer_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/framebuffer_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/fuse_support.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/fuse_support.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/fuse_support_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/fuse_support_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/fwupd.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/fwupd.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/fwupd_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/fwupd_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/gpio.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/gpio.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/gpio_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/gpio_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/gsettings.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/gsettings.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/gsettings_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/gsettings_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/hardware_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/hardware_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/hardware_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/hardware_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/hidraw.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/hidraw.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/hidraw_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/hidraw_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/home.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/home.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/home_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/home_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/i2c.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/i2c.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/i2c_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/i2c_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/iio.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/iio.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/iio_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/iio_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/io_ports_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/io_ports_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/io_ports_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/io_ports_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/kernel_module_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/kernel_module_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/kernel_module_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/kernel_module_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/libvirt.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/libvirt.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/libvirt_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/libvirt_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/locale_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/locale_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/locale_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/locale_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/location_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/location_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/location_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/location_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/location_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/location_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/location_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/location_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/log_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/log_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/log_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/log_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/lxd.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/lxd.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/lxd_support.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/lxd_support.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/lxd_support_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/lxd_support_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/lxd_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/lxd_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/mir.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/mir.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/mir_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/mir_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/modem_manager.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/modem_manager.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/modem_manager_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/modem_manager_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/mount_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/mount_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/mount_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/mount_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/mpris.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/mpris.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/mpris_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/mpris_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_bind.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_bind.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_bind_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_bind_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_manager.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_manager.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_manager_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_manager_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_setup_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_setup_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_setup_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_setup_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_setup_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_setup_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_setup_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_setup_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/network_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/network_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/ofono.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/ofono.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/ofono_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/ofono_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/opengl.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/opengl.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/openvswitch.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/openvswitch.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/openvswitch_support.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/openvswitch_support.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/openvswitch_support_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/openvswitch_support_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/openvswitch_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/openvswitch_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/optical_drive.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/optical_drive.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/physical_memory_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/physical_memory_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/physical_memory_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/physical_memory_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/physical_memory_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/physical_memory_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/physical_memory_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/physical_memory_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/ppp.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/ppp.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/ppp_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/ppp_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/process_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/process_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/process_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/process_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/pulseaudio.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/pulseaudio.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/pulseaudio_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/pulseaudio_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/raw_usb.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/raw_usb.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/raw_usb_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/raw_usb_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/removable_media.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/removable_media.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/removable_media_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/removable_media_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/screen_inhibit_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/screen_inhibit_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/screen_inhibit_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/screen_inhibit_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/serial_port.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/serial_port.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/serial_port_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/serial_port_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/shutdown.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/shutdown.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/shutdown_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/shutdown_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/snapd_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/snapd_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/snapd_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/snapd_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/system_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/system_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/system_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/system_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/system_trace.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/system_trace.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/system_trace_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/system_trace_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/thumbnailer.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/thumbnailer.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/thumbnailer_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/thumbnailer_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/time_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/time_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/time_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/time_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/timeserver_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/timeserver_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/timeserver_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/timeserver_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/timezone_control.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/timezone_control.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/timezone_control_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/timezone_control_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/tpm.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/tpm.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/tpm_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/tpm_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/ubuntu_download_manager.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/ubuntu_download_manager.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/ubuntu_download_manager_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/ubuntu_download_manager_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/udisks2.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/udisks2.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/udisks2_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/udisks2_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/uhid.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/uhid.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/uhid_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/uhid_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity7.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity7.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity7_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity7_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity8.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity8.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity8_calendar.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity8_calendar.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity8_calendar_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity8_calendar_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity8_contacts.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity8_contacts.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity8_contacts_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity8_contacts_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity8_pim_common.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity8_pim_common.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/unity8_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/unity8_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/upower_observe.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/upower_observe.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/upower_observe_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/upower_observe_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/utils.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/utils.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/x11.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/x11.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/builtin/x11_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/builtin/x11_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/core.go ^ |
| (renamed from snapd-2.23.5/interfaces/core.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/core_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/core_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/dbus ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/dbus/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/dbus/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/dbus/backend_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/dbus/backend_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/dbus/dbus.go ^ |
| (renamed from snapd-2.23.5/interfaces/dbus/dbus.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/dbus/dbus_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/dbus/dbus_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/dbus/export_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/dbus/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/dbus/template.go ^ |
| (renamed from snapd-2.23.5/interfaces/dbus/template.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/ifacetest ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/ifacetest/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/ifacetest/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/ifacetest/backendtest.go ^ |
| (renamed from snapd-2.23.5/interfaces/ifacetest/backendtest.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/ifacetest/ifacetest_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/ifacetest/ifacetest_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/ifacetest/spec.go ^ |
| (renamed from snapd-2.23.5/interfaces/ifacetest/spec.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/ifacetest/spec_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/ifacetest/spec_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/ifacetest/testiface.go ^ |
| (renamed from snapd-2.23.5/interfaces/ifacetest/testiface.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/ifacetest/testiface_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/ifacetest/testiface_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/json.go ^ |
| (renamed from snapd-2.23.5/interfaces/json.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/json_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/json_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/kmod ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/kmod/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/kmod/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/kmod/backend_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/kmod/backend_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/kmod/export_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/kmod/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/kmod/kmod.go ^ |
| (renamed from snapd-2.23.5/interfaces/kmod/kmod.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/kmod/kmod_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/kmod/kmod_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/kmod/spec.go ^ |
| (renamed from snapd-2.23.5/interfaces/kmod/spec.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/kmod/spec_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/kmod/spec_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/mount ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/mount/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/mount/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/mount/backend_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/mount/backend_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/mount/entry.go ^ |
| (renamed from snapd-2.23.5/interfaces/mount/entry.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/mount/entry_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/mount/entry_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/mount/spec.go ^ |
| (renamed from snapd-2.23.5/interfaces/mount/spec.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/mount/spec_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/mount/spec_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/naming.go ^ |
| (renamed from snapd-2.23.5/interfaces/naming.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/naming_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/naming_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/policy ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/policy/export_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/policy/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/policy/helpers.go ^ |
| (renamed from snapd-2.23.5/interfaces/policy/helpers.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/policy/helpers_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/policy/helpers_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/policy/policy.go ^ |
| (renamed from snapd-2.23.5/interfaces/policy/policy.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/policy/policy_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/policy/policy_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/repo.go ^ |
| (renamed from snapd-2.23.5/interfaces/repo.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/repo_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/repo_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/seccomp ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/seccomp/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/seccomp/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/seccomp/backend_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/seccomp/backend_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/seccomp/export_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/seccomp/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/seccomp/seccomp_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/seccomp/seccomp_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/seccomp/spec.go ^ |
| (renamed from snapd-2.23.5/interfaces/seccomp/spec.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/seccomp/spec_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/seccomp/spec_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/seccomp/template.go ^ |
| (renamed from snapd-2.23.5/interfaces/seccomp/template.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/sorting.go ^ |
| (renamed from snapd-2.23.5/interfaces/sorting.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/sorting_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/sorting_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/systemd ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/systemd/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/systemd/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/systemd/backend_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/systemd/backend_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/systemd/export_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/systemd/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/systemd/snippet.go ^ |
| (renamed from snapd-2.23.5/interfaces/systemd/snippet.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/systemd/snippet_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/systemd/snippet_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/systemd/systemd_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/systemd/systemd_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/udev ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/udev/backend.go ^ |
| (renamed from snapd-2.23.5/interfaces/udev/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/udev/backend_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/udev/backend_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/udev/spec.go ^ |
| (renamed from snapd-2.23.5/interfaces/udev/spec.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/udev/spec_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/udev/spec_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/udev/udev.go ^ |
| (renamed from snapd-2.23.5/interfaces/udev/udev.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/interfaces/udev/udev_test.go ^ |
| (renamed from snapd-2.23.5/interfaces/udev/udev_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/logger ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/logger/logger.go ^ |
| (renamed from snapd-2.23.5/logger/logger.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/logger/logger_test.go ^ |
| (renamed from snapd-2.23.5/logger/logger_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/mdlint.py ^ |
| (renamed from snapd-2.23.5/mdlint.py) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/mkversion.sh ^ |
| (renamed from snapd-2.23.5/mkversion.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/buildid.go ^ |
| (renamed from snapd-2.23.5/osutil/buildid.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/buildid_test.go ^ |
| (renamed from snapd-2.23.5/osutil/buildid_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/chattr.go ^ |
| (renamed from snapd-2.23.5/osutil/chattr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/chattr_32.go ^ |
| (renamed from snapd-2.23.5/osutil/chattr_32.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/chattr_64.go ^ |
| (renamed from snapd-2.23.5/osutil/chattr_64.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/chdir.go ^ |
| (renamed from snapd-2.23.5/osutil/chdir.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/chdir_test.go ^ |
| (renamed from snapd-2.23.5/osutil/chdir_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/cmp.go ^ |
| (renamed from snapd-2.23.5/osutil/cmp.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/cmp_test.go ^ |
| (renamed from snapd-2.23.5/osutil/cmp_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/cp.go ^ |
| (renamed from snapd-2.23.5/osutil/cp.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/cp_linux.go ^ |
| (renamed from snapd-2.23.5/osutil/cp_linux.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/cp_linux_test.go ^ |
| (renamed from snapd-2.23.5/osutil/cp_linux_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/cp_other.go ^ |
| (renamed from snapd-2.23.5/osutil/cp_other.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/cp_test.go ^ |
| (renamed from snapd-2.23.5/osutil/cp_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/digest.go ^ |
| (renamed from snapd-2.23.5/osutil/digest.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/digest_test.go ^ |
| (renamed from snapd-2.23.5/osutil/digest_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/env.go ^ |
| (renamed from snapd-2.23.5/osutil/env.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/env_test.go ^ |
| (renamed from snapd-2.23.5/osutil/env_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/exec.go ^ |
| (renamed from snapd-2.23.5/osutil/exec.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/exec_test.go ^ |
| (renamed from snapd-2.23.5/osutil/exec_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/exitcode.go ^ |
| (renamed from snapd-2.23.5/osutil/exitcode.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/exitcode_test.go ^ |
| (renamed from snapd-2.23.5/osutil/exitcode_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/export_test.go ^ |
| (renamed from snapd-2.23.5/osutil/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/io.go ^ |
| (renamed from snapd-2.23.5/osutil/io.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/io_test.go ^ |
| (renamed from snapd-2.23.5/osutil/io_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/mkdirallchown.go ^ |
| (renamed from snapd-2.23.5/osutil/mkdirallchown.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/mount.go ^ |
| (renamed from snapd-2.23.5/osutil/mount.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/mount_test.go ^ |
| (renamed from snapd-2.23.5/osutil/mount_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/osutil_test.go ^ |
| (renamed from snapd-2.23.5/osutil/osutil_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/outputerr.go ^ |
| (renamed from snapd-2.23.5/osutil/outputerr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/outputerr_test.go ^ |
| (renamed from snapd-2.23.5/osutil/outputerr_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/stat.go ^ |
| (renamed from snapd-2.23.5/osutil/stat.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/stat_test.go ^ |
| (renamed from snapd-2.23.5/osutil/stat_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/syncdir.go ^ |
| (renamed from snapd-2.23.5/osutil/syncdir.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/syncdir_test.go ^ |
| (renamed from snapd-2.23.5/osutil/syncdir_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/user.go ^ |
| (renamed from snapd-2.23.5/osutil/user.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/user_test.go ^ |
| (renamed from snapd-2.23.5/osutil/user_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/osutil/winsize.go ^ |
| (renamed from snapd-2.23.5/osutil/winsize.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/assertstate ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/assertstate/assertmgr.go ^ |
| (renamed from snapd-2.23.5/overlord/assertstate/assertmgr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/assertstate/assertmgr_test.go ^ |
| (renamed from snapd-2.23.5/overlord/assertstate/assertmgr_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/assertstate/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/assertstate/export_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/auth ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/auth/auth.go ^ |
| (renamed from snapd-2.23.5/overlord/auth/auth.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/auth/auth_test.go ^ |
| (renamed from snapd-2.23.5/overlord/auth/auth_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/backend.go ^ |
| (renamed from snapd-2.23.5/overlord/backend.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/config ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/config/helpers.go ^ |
| (renamed from snapd-2.23.5/overlord/configstate/config/helpers.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/config/transaction.go ^ |
| (renamed from snapd-2.23.5/overlord/configstate/config/transaction.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/config/transaction_test.go ^ |
| (renamed from snapd-2.23.5/overlord/configstate/config/transaction_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/configmgr.go ^ |
| (renamed from snapd-2.23.5/overlord/configstate/configmgr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/configstate/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/handler.go ^ |
| (renamed from snapd-2.23.5/overlord/configstate/handler.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/handler_test.go ^ |
| (renamed from snapd-2.23.5/overlord/configstate/handler_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/tasksets.go ^ |
| @@ -0,0 +1,70 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package configstate + +import ( + "fmt" + "os" + "time" + + "github.com/snapcore/snapd/i18n/dumb" + "github.com/snapcore/snapd/overlord/hookstate" + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/state" +) + +func init() { + snapstate.Configure = Configure +} + +func configureHookTimeout() time.Duration { + timeout := 5 * time.Minute + if s := os.Getenv("SNAPD_CONFIGURE_HOOK_TIMEOUT"); s != "" { + if to, err := time.ParseDuration(s); err == nil { + timeout = to + } + } + return timeout +} + +// Configure returns a taskset to apply the given configuration patch. +func Configure(s *state.State, snapName string, patch map[string]interface{}, flags int) *state.TaskSet { + hooksup := &hookstate.HookSetup{ + Snap: snapName, + Hook: "configure", + Optional: len(patch) == 0, + IgnoreError: flags&snapstate.IgnoreHookError != 0, + TrackError: flags&snapstate.TrackHookError != 0, + // all configure hooks must finish within this timeout + Timeout: configureHookTimeout(), + } + var contextData map[string]interface{} + if len(patch) > 0 { + contextData = map[string]interface{}{"patch": patch} + } + var summary string + if hooksup.Optional { + summary = fmt.Sprintf(i18n.G("Run configure hook of %q snap if present"), snapName) + } else { + summary = fmt.Sprintf(i18n.G("Run configure hook of %q snap"), snapName) + } + task := hookstate.HookTask(s, summary, hooksup, contextData) + return state.NewTaskSet(task) +} | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/configstate/tasksets_test.go ^ |
| @@ -0,0 +1,119 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package configstate_test + +import ( + "time" + + . "gopkg.in/check.v1" + + "github.com/snapcore/snapd/overlord/configstate" + "github.com/snapcore/snapd/overlord/hookstate" + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/snap" +) + +type tasksetsSuite struct { + state *state.State +} + +var _ = Suite(&tasksetsSuite{}) + +func (s *tasksetsSuite) SetUpTest(c *C) { + s.state = state.New(nil) +} + +var configureTests = []struct { + patch map[string]interface{} + optional bool + ignoreError bool +}{{ + patch: nil, + optional: true, + ignoreError: false, +}, { + patch: map[string]interface{}{}, + optional: true, + ignoreError: false, +}, { + patch: map[string]interface{}{"foo": "bar"}, + optional: false, + ignoreError: false, +}, { + patch: nil, + optional: true, + ignoreError: true, +}} + +func (s *tasksetsSuite) TestConfigure(c *C) { + for _, test := range configureTests { + var flags int + if test.ignoreError { + flags |= snapstate.IgnoreHookError + } + + s.state.Lock() + taskset := configstate.Configure(s.state, "test-snap", test.patch, flags) + s.state.Unlock() + + tasks := taskset.Tasks() + c.Assert(tasks, HasLen, 1) + task := tasks[0] + + c.Assert(task.Kind(), Equals, "run-hook") + + summary := `Run configure hook of "test-snap" snap` + if test.optional { + summary += " if present" + } + c.Assert(task.Summary(), Equals, summary) + + var hooksup hookstate.HookSetup + s.state.Lock() + err := task.Get("hook-setup", &hooksup) + s.state.Unlock() + c.Check(err, IsNil) + + c.Assert(hooksup.Snap, Equals, "test-snap") + c.Assert(hooksup.Hook, Equals, "configure") + c.Assert(hooksup.Optional, Equals, test.optional) + c.Assert(hooksup.IgnoreError, Equals, test.ignoreError) + c.Assert(hooksup.Timeout, Equals, 5*time.Minute) + + context, err := hookstate.NewContext(task, &hooksup, nil) + c.Check(err, IsNil) + c.Check(context.SnapName(), Equals, "test-snap") + c.Check(context.SnapRevision(), Equals, snap.Revision{}) + c.Check(context.HookName(), Equals, "configure") + + var patch map[string]interface{} + context.Lock() + err = context.Get("patch", &patch) + context.Unlock() + if len(test.patch) > 0 { + c.Check(err, IsNil) + c.Check(patch, DeepEquals, test.patch) + } else { + c.Check(err, Equals, state.ErrNoState) + c.Check(patch, IsNil) + } + } +} | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/devicestate ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/devicestate/devicemgr.go ^ |
| (renamed from snapd-2.23.5/overlord/devicestate/devicemgr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/devicestate/devicemgr_test.go ^ |
| (renamed from snapd-2.23.5/overlord/devicestate/devicemgr_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/devicestate/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/devicestate/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/devicestate/firstboot.go ^ |
| (renamed from snapd-2.23.5/overlord/devicestate/firstboot.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/devicestate/firstboot_test.go ^ |
| (renamed from snapd-2.23.5/overlord/devicestate/firstboot_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/export_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/context.go ^ |
| @@ -0,0 +1,220 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package hookstate + +import ( + "crypto/rand" + "encoding/base64" + "encoding/json" + "fmt" + "sync" + "sync/atomic" + "time" + + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/snap" +) + +// Context represents the context under which a given hook is running. +type Context struct { + task *state.Task + setup *HookSetup + id string + handler Handler + timeout time.Duration + + cache map[interface{}]interface{} + onDone []func() error + + mutex sync.Mutex + mutexChecker int32 +} + +// NewContext returns a new Context. +func NewContext(task *state.Task, setup *HookSetup, handler Handler) (*Context, error) { + // Generate a secure, random ID for this context + idBytes := make([]byte, 32) + _, err := rand.Read(idBytes) + if err != nil { + return nil, fmt.Errorf("cannot generate context ID: %s", err) + } + + return &Context{ + task: task, + setup: setup, + id: base64.URLEncoding.EncodeToString(idBytes), + handler: handler, + cache: make(map[interface{}]interface{}), + }, nil +} + +// SnapName returns the name of the snap containing the hook. +func (c *Context) SnapName() string { + return c.setup.Snap +} + +// SnapRevision returns the revision of the snap containing the hook. +func (c *Context) SnapRevision() snap.Revision { + return c.setup.Revision +} + +// HookName returns the name of the hook in this context. +func (c *Context) HookName() string { + return c.setup.Hook +} + +// Timeout returns the maximum time this hook can run +func (c *Context) Timeout() time.Duration { + return c.setup.Timeout +} + +// ID returns the ID of the context. +func (c *Context) ID() string { + return c.id +} + +// Handler returns the handler for this context +func (c *Context) Handler() Handler { + return c.handler +} + +// Lock acquires the lock for this context (required for Set/Get, Cache/Cached), +// and OnDone/Done). +func (c *Context) Lock() { + c.mutex.Lock() + c.task.State().Lock() + atomic.AddInt32(&c.mutexChecker, 1) +} + +// Unlock releases the lock for this context. +func (c *Context) Unlock() { + atomic.AddInt32(&c.mutexChecker, -1) + c.task.State().Unlock() + c.mutex.Unlock() +} + +func (c *Context) reading() { + if atomic.LoadInt32(&c.mutexChecker) != 1 { + panic("internal error: accessing context without lock") + } +} + +func (c *Context) writing() { + if atomic.LoadInt32(&c.mutexChecker) != 1 { + panic("internal error: accessing context without lock") + } +} + +// Set associates value with key. The provided value must properly marshal and +// unmarshal with encoding/json. Note that the context needs to be locked and +// unlocked by the caller. +func (c *Context) Set(key string, value interface{}) { + c.writing() + + var data map[string]*json.RawMessage + if err := c.task.Get("hook-context", &data); err != nil && err != state.ErrNoState { + panic(fmt.Sprintf("internal error: cannot unmarshal context: %v", err)) + } + if data == nil { + data = make(map[string]*json.RawMessage) + } + + marshalledValue, err := json.Marshal(value) + if err != nil { + panic(fmt.Sprintf("internal error: cannot marshal context value for %q: %s", key, err)) + } + raw := json.RawMessage(marshalledValue) + data[key] = &raw + + c.task.Set("hook-context", data) +} + +// Get unmarshals the stored value associated with the provided key into the +// value parameter. Note that the context needs to be locked/unlocked by the +// caller. +func (c *Context) Get(key string, value interface{}) error { + c.reading() + + var data map[string]*json.RawMessage + if err := c.task.Get("hook-context", &data); err != nil { + return err + } + + raw, ok := data[key] + if !ok { + return state.ErrNoState + } + + err := json.Unmarshal([]byte(*raw), &value) + if err != nil { + return fmt.Errorf("cannot unmarshal context value for %q: %s", key, err) + } + + return nil +} + +// State returns the state contained within the context +func (c *Context) State() *state.State { + return c.task.State() +} + +// Cached returns the cached value associated with the provided key. It returns +// nil if there is no entry for key. Note that the context needs to be locked +// and unlocked by the caller. +func (c *Context) Cached(key interface{}) interface{} { + c.reading() + + return c.cache[key] +} + +// Cache associates value with key. The cached value is not persisted. Note that +// the context needs to be locked/unlocked by the caller. +func (c *Context) Cache(key, value interface{}) { + c.writing() + + c.cache[key] = value +} + +// OnDone requests the provided function to be run once the context knows it's +// complete. This can be called multiple times; each function will be called in +// the order in which they were added. Note that the context needs to be locked +// and unlocked by the caller. +func (c *Context) OnDone(f func() error) { | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/context_test.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/context_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/ctlcmd ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/ctlcmd/ctlcmd.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/ctlcmd/ctlcmd.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/ctlcmd/ctlcmd_test.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/ctlcmd/ctlcmd_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/ctlcmd/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/ctlcmd/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/ctlcmd/get.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/ctlcmd/get.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/ctlcmd/get_test.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/ctlcmd/get_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/ctlcmd/set.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/ctlcmd/set.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/ctlcmd/set_test.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/ctlcmd/set_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/export_test.go ^ |
| @@ -0,0 +1,55 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package hookstate + +import ( + "syscall" + "time" +) + +func MockReadlink(f func(string) (string, error)) func() { + oldReadlink := osReadlink + osReadlink = f + return func() { + osReadlink = oldReadlink + } +} + +func MockSyscallKill(f func(int, syscall.Signal) error) func() { + oldSyscallKill := syscallKill + syscallKill = f + return func() { + syscallKill = oldSyscallKill + } +} + +func MockCmdWaitTimeout(timeout time.Duration) func() { + oldCmdWaitTimeout := cmdWaitTimeout + cmdWaitTimeout = timeout + return func() { + cmdWaitTimeout = oldCmdWaitTimeout + } +} + +func MockErrtrackerReport(mock func(string, string, string, map[string]string) (string, error)) (restore func()) { + prev := errtrackerReport + errtrackerReport = mock + return func() { errtrackerReport = prev } +} | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/hookmgr.go ^ |
| @@ -0,0 +1,396 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +// Package hookstate implements the manager and state aspects responsible for +// the running of hooks. +package hookstate + +import ( + "bytes" + "fmt" + "os" + "os/exec" + "path/filepath" + "regexp" + "strings" + "sync" + "syscall" + "time" + + "gopkg.in/tomb.v2" + + "github.com/snapcore/snapd/dirs" + "github.com/snapcore/snapd/errtracker" + "github.com/snapcore/snapd/logger" + "github.com/snapcore/snapd/osutil" + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/snap" +) + +// HookManager is responsible for the maintenance of hooks in the system state. +// It runs hooks when they're requested, assuming they're present in the given +// snap. Otherwise they're skipped with no error. +type HookManager struct { + state *state.State + runner *state.TaskRunner + repository *repository + + contextsMutex sync.RWMutex + contexts map[string]*Context +} + +// Handler is the interface a client must satify to handle hooks. +type Handler interface { + // Before is called right before the hook is to be run. + Before() error + + // Done is called right after the hook has finished successfully. + Done() error + + // Error is called if the hook encounters an error while running. + Error(err error) error +} + +// HandlerGenerator is the function signature required to register for hooks. +type HandlerGenerator func(*Context) Handler + +// HookSetup is a reference to a hook within a specific snap. +type HookSetup struct { + Snap string `json:"snap"` + Revision snap.Revision `json:"revision"` + Hook string `json:"hook"` + Optional bool `json:"optional,omitempty"` + + Timeout time.Duration `json:"timeout,omitempty"` + IgnoreError bool `json:"ignore-error,omitempty"` + TrackError bool `json:"track-error,omitempty"` +} + +// Manager returns a new HookManager. +func Manager(s *state.State) (*HookManager, error) { + runner := state.NewTaskRunner(s) + manager := &HookManager{ + state: s, + runner: runner, + repository: newRepository(), + contexts: make(map[string]*Context), + } + + runner.AddHandler("run-hook", manager.doRunHook, nil) + + return manager, nil +} + +// HookTask returns a task that will run the specified hook. Note that the +// initial context must properly marshal and unmarshal with encoding/json. +func HookTask(st *state.State, summary string, setup *HookSetup, contextData map[string]interface{}) *state.Task { + task := st.NewTask("run-hook", summary) + task.Set("hook-setup", setup) + + // Initial data for Context.Get/Set. + if len(contextData) > 0 { + task.Set("hook-context", contextData) + } + return task +} + +// Register registers a function to create Handler values whenever hooks +// matching the provided pattern are run. +func (m *HookManager) Register(pattern *regexp.Regexp, generator HandlerGenerator) { + m.repository.addHandlerGenerator(pattern, generator) +} + +// Ensure implements StateManager.Ensure. +func (m *HookManager) Ensure() error { + m.runner.Ensure() + return nil +} + +// Wait implements StateManager.Wait. +func (m *HookManager) Wait() { + m.runner.Wait() +} + +// Stop implements StateManager.Stop. +func (m *HookManager) Stop() { + m.runner.Stop() +} + +// Context obtains the context for the given context ID. +func (m *HookManager) Context(contextID string) (*Context, error) { + m.contextsMutex.RLock() + defer m.contextsMutex.RUnlock() + + context, ok := m.contexts[contextID] + if !ok { + return nil, fmt.Errorf("no context for ID: %q", contextID) + } + + return context, nil +} + +func hookSetup(task *state.Task) (*HookSetup, *snapstate.SnapState, error) { + var hooksup HookSetup + err := task.Get("hook-setup", &hooksup) + if err != nil { + return nil, nil, fmt.Errorf("cannot extract hook setup from task: %s", err) + } + + var snapst snapstate.SnapState + err = snapstate.Get(task.State(), hooksup.Snap, &snapst) + if err == state.ErrNoState { + return nil, nil, fmt.Errorf("cannot find %q snap", hooksup.Snap) + } + if err != nil { + return nil, nil, fmt.Errorf("cannot handle %q snap: %v", hooksup.Snap, err) + } + + return &hooksup, &snapst, nil +} + +// doRunHook actually runs the hook that was requested. +// +// Note that this method is synchronous, as the task is already running in a +// goroutine. +func (m *HookManager) doRunHook(task *state.Task, tomb *tomb.Tomb) error { + task.State().Lock() + hooksup, snapst, err := hookSetup(task) + task.State().Unlock() + if err != nil { + return err + } + + info, err := snapst.CurrentInfo() + if err != nil { + return fmt.Errorf("cannot read %q snap details: %v", hooksup.Snap, err) + } + + hookExists := info.Hooks[hooksup.Hook] != nil + if !hookExists && !hooksup.Optional { + return fmt.Errorf("snap %q has no %q hook", hooksup.Snap, hooksup.Hook) + } + + context, err := NewContext(task, hooksup, nil) + if err != nil { + return err + } + + // Obtain a handler for this hook. The repository returns a list since it's + // possible for regular expressions to overlap, but multiple handlers is an + // error (as is no handler). + handlers := m.repository.generateHandlers(context) + handlersCount := len(handlers) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/hookmgr_test.go ^ |
| @@ -0,0 +1,654 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package hookstate_test + +import ( + "encoding/json" + "os" + "path/filepath" + "regexp" + "syscall" + "testing" + "time" + + . "gopkg.in/check.v1" + + "github.com/snapcore/snapd/dirs" + "github.com/snapcore/snapd/overlord/hookstate" + "github.com/snapcore/snapd/overlord/hookstate/hooktest" + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/snap" + "github.com/snapcore/snapd/snap/snaptest" + "github.com/snapcore/snapd/testutil" +) + +func TestHookManager(t *testing.T) { TestingT(t) } + +type hookManagerSuite struct { + testutil.BaseTest + + state *state.State + manager *hookstate.HookManager + context *hookstate.Context + mockHandler *hooktest.MockHandler + task *state.Task + change *state.Change + command *testutil.MockCmd +} + +var _ = Suite(&hookManagerSuite{}) + +var snapYaml = ` +name: test-snap +version: 1.0 +hooks: + configure: + prepare-device: +` +var snapContents = "" + +func (s *hookManagerSuite) SetUpTest(c *C) { + s.BaseTest.SetUpTest(c) + + dirs.SetRootDir(c.MkDir()) + s.state = state.New(nil) + manager, err := hookstate.Manager(s.state) + c.Assert(err, IsNil) + s.manager = manager + + hooksup := &hookstate.HookSetup{ + Snap: "test-snap", + Hook: "configure", + Revision: snap.R(1), + } + + initialContext := map[string]interface{}{ + "test-key": "test-value", + } + + s.state.Lock() + s.task = hookstate.HookTask(s.state, "test summary", hooksup, initialContext) + c.Assert(s.task, NotNil, Commentf("Expected HookTask to return a task")) + + s.change = s.state.NewChange("kind", "summary") + s.change.AddTask(s.task) + + sideInfo := &snap.SideInfo{RealName: "test-snap", SnapID: "some-snap-id", Revision: snap.R(1)} + snaptest.MockSnap(c, snapYaml, snapContents, sideInfo) + snapstate.Set(s.state, "test-snap", &snapstate.SnapState{ + Active: true, + Sequence: []*snap.SideInfo{sideInfo}, + Current: snap.R(1), + }) + s.state.Unlock() + + s.command = testutil.MockCommand(c, "snap", "") + + s.context = nil + s.mockHandler = hooktest.NewMockHandler() + s.manager.Register(regexp.MustCompile("configure"), func(context *hookstate.Context) hookstate.Handler { + s.context = context + return s.mockHandler + }) + s.AddCleanup(hookstate.MockErrtrackerReport(func(string, string, string, map[string]string) (string, error) { + return "", nil + })) +} + +func (s *hookManagerSuite) TearDownTest(c *C) { + s.BaseTest.TearDownTest(c) + + s.manager.Stop() + dirs.SetRootDir("") +} + +func (s *hookManagerSuite) TestSmoke(c *C) { + s.manager.Ensure() + s.manager.Wait() +} + +func (s *hookManagerSuite) TestHookSetupJsonMarshal(c *C) { + hookSetup := &hookstate.HookSetup{Snap: "snap-name", Revision: snap.R(1), Hook: "hook-name"} + out, err := json.Marshal(hookSetup) + c.Assert(err, IsNil) + c.Check(string(out), Equals, "{\"snap\":\"snap-name\",\"revision\":\"1\",\"hook\":\"hook-name\"}") +} + +func (s *hookManagerSuite) TestHookSetupJsonUnmarshal(c *C) { + out, err := json.Marshal(hookstate.HookSetup{Snap: "snap-name", Revision: snap.R(1), Hook: "hook-name"}) + c.Assert(err, IsNil) + + var setup hookstate.HookSetup + err = json.Unmarshal(out, &setup) + c.Assert(err, IsNil) + c.Check(setup.Snap, Equals, "snap-name") + c.Check(setup.Revision, Equals, snap.R(1)) + c.Check(setup.Hook, Equals, "hook-name") +} + +func (s *hookManagerSuite) TestHookTask(c *C) { + s.state.Lock() + defer s.state.Unlock() + + hooksup := &hookstate.HookSetup{ + Snap: "test-snap", + Hook: "configure", + Revision: snap.R(1), + } + + task := hookstate.HookTask(s.state, "test summary", hooksup, nil) + c.Check(task.Kind(), Equals, "run-hook") + + var setup hookstate.HookSetup + err := task.Get("hook-setup", &setup) + c.Check(err, IsNil) + c.Check(setup.Snap, Equals, "test-snap") + c.Check(setup.Revision, Equals, snap.R(1)) + c.Check(setup.Hook, Equals, "configure") +} + +func (s *hookManagerSuite) TestHookTaskEnsure(c *C) { + s.manager.Ensure() + s.manager.Wait() + + s.state.Lock() + defer s.state.Unlock() + + c.Assert(s.context, NotNil, Commentf("Expected handler generator to be called with a valid context")) + c.Check(s.context.SnapName(), Equals, "test-snap") + c.Check(s.context.SnapRevision(), Equals, snap.R(1)) + c.Check(s.context.HookName(), Equals, "configure") + + c.Check(s.command.Calls(), DeepEquals, [][]string{{ + "snap", "run", "--hook", "configure", "-r", "1", "test-snap", + }}) + + c.Check(s.mockHandler.BeforeCalled, Equals, true) + c.Check(s.mockHandler.DoneCalled, Equals, true) + c.Check(s.mockHandler.ErrorCalled, Equals, false) + + c.Check(s.task.Kind(), Equals, "run-hook") + c.Check(s.task.Status(), Equals, state.DoneStatus) + c.Check(s.change.Status(), Equals, state.DoneStatus) +} + +func (s *hookManagerSuite) TestHookTaskInitializesContext(c *C) { + s.manager.Ensure() + s.manager.Wait() + + var value string + c.Assert(s.context, NotNil, Commentf("Expected handler generator to be called with a valid context")) + s.context.Lock() | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/hooktest ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/hooktest/handler.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/hooktest/handler.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/hooktest/handler_test.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/hooktest/handler_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/repository.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/repository.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/hookstate/repository_test.go ^ |
| (renamed from snapd-2.23.5/overlord/hookstate/repository_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/ifacestate ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/ifacestate/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/ifacestate/export_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/ifacestate/handlers.go ^ |
| @@ -0,0 +1,560 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package ifacestate + +import ( + "fmt" + "sort" + "time" + + "gopkg.in/tomb.v2" + + "github.com/snapcore/snapd/asserts" + "github.com/snapcore/snapd/interfaces" + "github.com/snapcore/snapd/interfaces/policy" + "github.com/snapcore/snapd/overlord/assertstate" + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/release" + "github.com/snapcore/snapd/snap" +) + +// confinementOptions returns interfaces.ConfinementOptions from snapstate.Flags. +func confinementOptions(flags snapstate.Flags) interfaces.ConfinementOptions { + return interfaces.ConfinementOptions{ + DevMode: flags.DevMode, + JailMode: flags.JailMode, + Classic: flags.Classic, + } +} + +func (m *InterfaceManager) setupAffectedSnaps(task *state.Task, affectingSnap string, affectedSnaps []string) error { + st := task.State() + + // Setup security of the affected snaps. + for _, affectedSnapName := range affectedSnaps { + // the snap that triggered the change needs to be skipped + if affectedSnapName == affectingSnap { + continue + } + var snapst snapstate.SnapState + if err := snapstate.Get(st, affectedSnapName, &snapst); err != nil { + task.Errorf("skipping security profiles setup for snap %q when handling snap %q: %v", affectedSnapName, affectingSnap, err) + continue + } + affectedSnapInfo, err := snapst.CurrentInfo() + if err != nil { + return err + } + snap.AddImplicitSlots(affectedSnapInfo) + opts := confinementOptions(snapst.Flags) + if err := m.setupSnapSecurity(task, affectedSnapInfo, opts); err != nil { + return err + } + } + return nil +} + +func (m *InterfaceManager) doSetupProfiles(task *state.Task, tomb *tomb.Tomb) error { + task.State().Lock() + defer task.State().Unlock() + + // Get snap.Info from bits handed by the snap manager. + snapsup, err := snapstate.TaskSnapSetup(task) + if err != nil { + return err + } + + snapInfo, err := snap.ReadInfo(snapsup.Name(), snapsup.SideInfo) + if err != nil { + return err + } + + // TODO: this whole bit seems maybe that it should belong (largely) to a snapstate helper + var corePhase2 bool + if err := task.Get("core-phase-2", &corePhase2); err != nil && err != state.ErrNoState { + return err + } + if corePhase2 { + if snapInfo.Type != snap.TypeOS { + // not core, nothing to do + return nil + } + if task.State().Restarting() { + // don't continue until we are in the restarted snapd + task.Logf("Waiting for restart...") + return &state.Retry{} + } + // if not on classic check there was no rollback + if !release.OnClassic { + // TODO: double check that we really rebooted + // otherwise this could be just a spurious restart + // of snapd + name, rev, err := snapstate.CurrentBootNameAndRevision(snap.TypeOS) + if err == snapstate.ErrBootNameAndRevisionAgain { + return &state.Retry{After: 5 * time.Second} + } + if err != nil { + return err + } + if snapsup.Name() != name || snapInfo.Revision != rev { + return fmt.Errorf("cannot finish core installation, there was a rollback across reboot") + } + } + } + + opts := confinementOptions(snapsup.Flags) + return m.setupProfilesForSnap(task, tomb, snapInfo, opts) +} + +func (m *InterfaceManager) setupProfilesForSnap(task *state.Task, _ *tomb.Tomb, snapInfo *snap.Info, opts interfaces.ConfinementOptions) error { + snap.AddImplicitSlots(snapInfo) + snapName := snapInfo.Name() + + // The snap may have been updated so perform the following operation to + // ensure that we are always working on the correct state: + // + // - disconnect all connections to/from the given snap + // - remembering the snaps that were affected by this operation + // - remove the (old) snap from the interfaces repository + // - add the (new) snap to the interfaces repository + // - restore connections based on what is kept in the state + // - if a connection cannot be restored then remove it from the state + // - setup the security of all the affected snaps + disconnectedSnaps, err := m.repo.DisconnectSnap(snapName) + if err != nil { + return err + } + // XXX: what about snap renames? We should remove the old name (or switch + // to IDs in the interfaces repository) + if err := m.repo.RemoveSnap(snapName); err != nil { + return err + } + if err := m.repo.AddSnap(snapInfo); err != nil { + if _, ok := err.(*interfaces.BadInterfacesError); ok { + task.Logf("%s", err) + } else { + return err + } + } + if err := m.reloadConnections(snapName); err != nil { + return err + } + // FIXME: here we should not reconnect auto-connect plug/slot + // pairs that were explicitly disconnected by the user + connectedSnaps, err := m.autoConnect(task, snapName, nil) + if err != nil { + return err + } + if err := m.setupSnapSecurity(task, snapInfo, opts); err != nil { + return err + } + affectedSet := make(map[string]bool) + for _, name := range disconnectedSnaps { + affectedSet[name] = true + } + for _, name := range connectedSnaps { + affectedSet[name] = true + } + // The principal snap was already handled above. + delete(affectedSet, snapInfo.Name()) + affectedSnaps := make([]string, 0, len(affectedSet)) + for name := range affectedSet { + affectedSnaps = append(affectedSnaps, name) + } + sort.Strings(affectedSnaps) + return m.setupAffectedSnaps(task, snapName, affectedSnaps) +} + +func (m *InterfaceManager) doRemoveProfiles(task *state.Task, tomb *tomb.Tomb) error { + st := task.State() + st.Lock() + defer st.Unlock() + + // Get SnapSetup for this snap. This is gives us the name of the snap. + snapSetup, err := snapstate.TaskSnapSetup(task) + if err != nil { + return err + } + snapName := snapSetup.Name() + + return m.removeProfilesForSnap(task, tomb, snapName) +} | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/ifacestate/helpers.go ^ |
| (renamed from snapd-2.23.5/overlord/ifacestate/helpers.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/ifacestate/hooks.go ^ |
| (renamed from snapd-2.23.5/overlord/ifacestate/hooks.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/ifacestate/ifacemgr.go ^ |
| (renamed from snapd-2.23.5/overlord/ifacestate/ifacemgr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/ifacestate/ifacemgr_test.go ^ |
| (renamed from snapd-2.23.5/overlord/ifacestate/ifacemgr_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/managers_test.go ^ |
| (renamed from snapd-2.23.5/overlord/managers_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/overlord.go ^ |
| (renamed from snapd-2.23.5/overlord/overlord.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/overlord_test.go ^ |
| (renamed from snapd-2.23.5/overlord/overlord_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch1.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch1.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch1_test.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch1_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch2.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch2.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch2_test.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch2_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch3.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch3.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch3_test.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch3_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch4.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch4.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch4_test.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch4_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch5.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch5.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch6.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch6.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch6_test.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch6_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/patch/patch_test.go ^ |
| (renamed from snapd-2.23.5/overlord/patch/patch_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/aliases.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/aliases.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/aliases_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/aliases_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/aliases.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/aliases.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/aliases_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/aliases_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/backend.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/backend.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/backend_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/backend_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/copydata.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/copydata.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/copydata_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/copydata_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/link.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/link.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/link_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/link_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/mountunit.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/mountunit.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/mountunit_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/mountunit_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/ns.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/ns.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/ns_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/ns_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/setup.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/setup.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/setup_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/setup_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/snapdata.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/snapdata.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend/utils.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/backend/utils.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/backend_test.go ^ |
| @@ -0,0 +1,545 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package snapstate_test + +import ( + "errors" + "fmt" + + "golang.org/x/net/context" + + "github.com/snapcore/snapd/asserts" + "github.com/snapcore/snapd/overlord/auth" + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/snapstate/backend" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/progress" + "github.com/snapcore/snapd/snap" + "github.com/snapcore/snapd/store" +) + +type fakeOp struct { + op string + + name string + channel string + revno snap.Revision + sinfo snap.SideInfo + stype snap.Type + cand store.RefreshCandidate + + old string + + aliases []*backend.Alias + rmAliases []*backend.Alias +} + +type fakeOps []fakeOp + +func (ops fakeOps) Ops() []string { + opsOps := make([]string, len(ops)) + for i, op := range ops { + opsOps[i] = op.op + } + + return opsOps +} + +func (ops fakeOps) Count(op string) int { + n := 0 + for i := range ops { + if ops[i].op == op { + n++ + } + } + return n +} + +func (ops fakeOps) First(op string) *fakeOp { + for i := range ops { + if ops[i].op == op { + return &ops[i] + } + } + + return nil +} + +type fakeDownload struct { + name string + macaroon string +} + +type fakeStore struct { + downloads []fakeDownload + fakeBackend *fakeSnappyBackend + fakeCurrentProgress int + fakeTotalProgress int + state *state.State +} + +func (f *fakeStore) pokeStateLock() { + // the store should be called without the state lock held. Try + // to acquire it. + f.state.Lock() + f.state.Unlock() +} + +func (f *fakeStore) SnapInfo(spec store.SnapSpec, user *auth.UserState) (*snap.Info, error) { + f.pokeStateLock() + + if spec.Revision.Unset() { + spec.Revision = snap.R(11) + if spec.Channel == "channel-for-7" { + spec.Revision.N = 7 + } + } + + confinement := snap.StrictConfinement + switch spec.Channel { + case "channel-for-devmode": + confinement = snap.DevModeConfinement + case "channel-for-classic": + confinement = snap.ClassicConfinement + } + + typ := snap.TypeApp + if spec.Name == "some-core" { + typ = snap.TypeOS + } + + info := &snap.Info{ + Architectures: []string{"all"}, + SideInfo: snap.SideInfo{ + RealName: spec.Name, + Channel: spec.Channel, + SnapID: "snapIDsnapidsnapidsnapidsnapidsn", + Revision: spec.Revision, + }, + Version: spec.Name, + DownloadInfo: snap.DownloadInfo{ + DownloadURL: "https://some-server.com/some/path.snap", + }, + Confinement: confinement, + Type: typ, + } + f.fakeBackend.ops = append(f.fakeBackend.ops, fakeOp{op: "storesvc-snap", name: spec.Name, revno: spec.Revision}) + + return info, nil +} + +func (f *fakeStore) Find(search *store.Search, user *auth.UserState) ([]*snap.Info, error) { + panic("Find called") +} + +func (f *fakeStore) ListRefresh(cands []*store.RefreshCandidate, _ *auth.UserState) ([]*snap.Info, error) { + f.pokeStateLock() + + if len(cands) == 0 { + return nil, nil + } + if len(cands) > 2 { + panic("ListRefresh unexpectedly called with more than two candidates") + } + + var res []*snap.Info + for _, cand := range cands { + snapID := cand.SnapID + + if snapID == "" || snapID == "other-snap-id" { + continue + } + + if snapID == "fakestore-please-error-on-refresh" { + return nil, fmt.Errorf("failing as requested") + } + + var name string + switch snapID { + case "some-snap-id": + name = "some-snap" + case "core-snap-id": + name = "core" + default: + panic(fmt.Sprintf("ListRefresh: unknown snap-id: %s", snapID)) + } + + revno := snap.R(11) + confinement := snap.StrictConfinement + switch cand.Channel { + case "channel-for-7": + revno = snap.R(7) + case "channel-for-classic": + confinement = snap.ClassicConfinement + case "channel-for-devmode": + confinement = snap.DevModeConfinement + } + + info := &snap.Info{ + SideInfo: snap.SideInfo{ + RealName: name, + Channel: cand.Channel, + SnapID: cand.SnapID, | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/booted.go ^ |
| @@ -0,0 +1,169 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2014-2015 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package snapstate + +import ( + "errors" + "fmt" + "strings" + + "github.com/snapcore/snapd/logger" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/partition" + "github.com/snapcore/snapd/release" + "github.com/snapcore/snapd/snap" +) + +func nameAndRevnoFromSnap(sn string) (string, snap.Revision, error) { + l := strings.Split(sn, "_") + if len(l) < 2 { + return "", snap.Revision{}, fmt.Errorf("input %q has invalid format (not enough '_')", sn) + } + name := l[0] + revnoNSuffix := l[1] + rev, err := snap.ParseRevision(strings.Split(revnoNSuffix, ".snap")[0]) + if err != nil { + return "", snap.Revision{}, err + } + return name, rev, nil +} + +// UpdateBootRevisions synchronizes the active kernel and OS snap versions +// with the versions that actually booted. This is needed because a +// system may install "os=v2" but that fails to boot. The bootloader +// fallback logic will revert to "os=v1" but on the filesystem snappy +// still has the "active" version set to "v2" which is +// misleading. This code will check what kernel/os booted and set +// those versions active.To do this it creates a Change and kicks +// start it directly. +func UpdateBootRevisions(st *state.State) error { + const errorPrefix = "cannot update revisions after boot changes: " + + if release.OnClassic { + return nil + } + + // nothing to check if there's no kernel + _, err := KernelInfo(st) + if err == state.ErrNoState { + return nil + } + if err != nil { + return fmt.Errorf(errorPrefix+"%s", err) + } + + bootloader, err := partition.FindBootloader() + if err != nil { + return fmt.Errorf(errorPrefix+"%s", err) + } + + m, err := bootloader.GetBootVars("snap_kernel", "snap_core") + if err != nil { + return fmt.Errorf(errorPrefix+"%s", err) + } + + var tsAll []*state.TaskSet + for _, snapNameAndRevno := range []string{m["snap_kernel"], m["snap_core"]} { + name, rev, err := nameAndRevnoFromSnap(snapNameAndRevno) + if err != nil { + logger.Noticef("cannot parse %q: %s", snapNameAndRevno, err) + continue + } + info, err := CurrentInfo(st, name) + if err != nil { + logger.Noticef("cannot get info for %q: %s", name, err) + continue + } + if rev != info.SideInfo.Revision { + // FIXME: check that there is no task + // for this already in progress + ts, err := RevertToRevision(st, name, rev, Flags{}) + if err != nil { + return err + } + tsAll = append(tsAll, ts) + } + } + + if len(tsAll) == 0 { + return nil + } + + msg := fmt.Sprintf("Update kernel and core snap revisions") + chg := st.NewChange("update-revisions", msg) + for _, ts := range tsAll { + chg.AddAll(ts) + } + st.EnsureBefore(0) + + return nil +} + +var ErrBootNameAndRevisionAgain = errors.New("boot revision not yet established") + +// CurrentBootNameAndRevision returns the currently set name and +// revision for boot for the given type of snap, which can be core or +// kernel. Returns ErrBootNameAndRevisionAgain if the values are +// temporarily not established. +func CurrentBootNameAndRevision(typ snap.Type) (name string, revision snap.Revision, err error) { + var kind string + var bootVar string + + switch typ { + case snap.TypeKernel: + kind = "kernel" + bootVar = "snap_kernel" + case snap.TypeOS: + kind = "core" + bootVar = "snap_core" + default: + return "", snap.Revision{}, fmt.Errorf("cannot find boot revision for anything but core and kernel") + } + + errorPrefix := fmt.Sprintf("cannot retrieve boot revision for %s: ", kind) + if release.OnClassic { + return "", snap.Revision{}, fmt.Errorf(errorPrefix + "classic system") + } + + bootloader, err := partition.FindBootloader() + if err != nil { + return "", snap.Revision{}, fmt.Errorf(errorPrefix+"%s", err) + } + + m, err := bootloader.GetBootVars(bootVar, "snap_mode") + if err != nil { + return "", snap.Revision{}, fmt.Errorf(errorPrefix+"%s", err) + } + + if m["snap_mode"] == "trying" { + return "", snap.Revision{}, ErrBootNameAndRevisionAgain + } + + snapNameAndRevno := m[bootVar] + if snapNameAndRevno == "" { + return "", snap.Revision{}, fmt.Errorf(errorPrefix + "unset") + } + name, rev, err := nameAndRevnoFromSnap(snapNameAndRevno) + if err != nil { + return "", snap.Revision{}, fmt.Errorf(errorPrefix+"%s", err) + } + + return name, rev, nil +} | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/booted_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/booted_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/check_snap.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/check_snap.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/check_snap_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/check_snap_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/discard_snap_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/discard_snap_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/download_snap_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/download_snap_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/flags.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/flags.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/link_snap_test.go ^ |
| @@ -0,0 +1,364 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package snapstate_test + +import ( + "time" + + . "gopkg.in/check.v1" + + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/release" + "github.com/snapcore/snapd/snap" +) + +type linkSnapSuite struct { + state *state.State + snapmgr *snapstate.SnapManager + + fakeBackend *fakeSnappyBackend + + stateBackend *witnessRestartReqStateBackend + + reset func() +} + +var _ = Suite(&linkSnapSuite{}) + +type witnessRestartReqStateBackend struct { + restartRequested state.RestartType +} + +func (b *witnessRestartReqStateBackend) Checkpoint([]byte) error { + return nil +} + +func (b *witnessRestartReqStateBackend) RequestRestart(t state.RestartType) { + b.restartRequested = t +} + +func (b *witnessRestartReqStateBackend) EnsureBefore(time.Duration) {} + +func (s *linkSnapSuite) SetUpTest(c *C) { + s.stateBackend = &witnessRestartReqStateBackend{} + s.fakeBackend = &fakeSnappyBackend{} + s.state = state.New(s.stateBackend) + + var err error + s.snapmgr, err = snapstate.Manager(s.state) + c.Assert(err, IsNil) + s.snapmgr.AddForeignTaskHandlers(s.fakeBackend) + + snapstate.SetSnapManagerBackend(s.snapmgr, s.fakeBackend) + + s.reset = snapstate.MockReadInfo(s.fakeBackend.ReadInfo) +} + +func (s *linkSnapSuite) TearDownTest(c *C) { + s.reset() +} + +func (s *linkSnapSuite) TestDoLinkSnapSuccess(c *C) { + s.state.Lock() + t := s.state.NewTask("link-snap", "test") + t.Set("snap-setup", &snapstate.SnapSetup{ + SideInfo: &snap.SideInfo{ + RealName: "foo", + Revision: snap.R(33), + }, + Channel: "beta", + }) + s.state.NewChange("dummy", "...").AddTask(t) + + s.state.Unlock() + + s.snapmgr.Ensure() + s.snapmgr.Wait() + + s.state.Lock() + defer s.state.Unlock() + var snapst snapstate.SnapState + err := snapstate.Get(s.state, "foo", &snapst) + c.Assert(err, IsNil) + + typ, err := snapst.Type() + c.Check(err, IsNil) + c.Check(typ, Equals, snap.TypeApp) + + c.Check(snapst.Active, Equals, true) + c.Check(snapst.Sequence, HasLen, 1) + c.Check(snapst.Current, Equals, snap.R(33)) + c.Check(snapst.Channel, Equals, "beta") + c.Check(t.Status(), Equals, state.DoneStatus) + c.Check(s.stateBackend.restartRequested, Equals, state.RestartUnset) +} + +func (s *linkSnapSuite) TestDoUndoLinkSnap(c *C) { + s.state.Lock() + defer s.state.Unlock() + si := &snap.SideInfo{ + RealName: "foo", + Revision: snap.R(33), + } + t := s.state.NewTask("link-snap", "test") + t.Set("snap-setup", &snapstate.SnapSetup{ + SideInfo: si, + Channel: "beta", + }) + chg := s.state.NewChange("dummy", "...") + chg.AddTask(t) + + terr := s.state.NewTask("error-trigger", "provoking total undo") + terr.WaitFor(t) + chg.AddTask(terr) + + s.state.Unlock() + + for i := 0; i < 3; i++ { + s.snapmgr.Ensure() + s.snapmgr.Wait() + } + + s.state.Lock() + var snapst snapstate.SnapState + err := snapstate.Get(s.state, "foo", &snapst) + c.Assert(err, Equals, state.ErrNoState) + c.Check(t.Status(), Equals, state.UndoneStatus) +} + +func (s *linkSnapSuite) TestDoLinkSnapTryToCleanupOnError(c *C) { + s.state.Lock() + defer s.state.Unlock() + si := &snap.SideInfo{ + RealName: "foo", + Revision: snap.R(35), + } + t := s.state.NewTask("link-snap", "test") + t.Set("snap-setup", &snapstate.SnapSetup{ + SideInfo: si, + Channel: "beta", + }) + + s.fakeBackend.linkSnapFailTrigger = "/snap/foo/35" + s.state.NewChange("dummy", "...").AddTask(t) + s.state.Unlock() + + s.snapmgr.Ensure() + s.snapmgr.Wait() + + s.state.Lock() + + // state as expected + var snapst snapstate.SnapState + err := snapstate.Get(s.state, "foo", &snapst) + c.Assert(err, Equals, state.ErrNoState) + + // tried to cleanup + c.Check(s.fakeBackend.ops, DeepEquals, fakeOps{ + { + op: "candidate", + sinfo: *si, + }, + { + op: "link-snap.failed", + name: "/snap/foo/35", + }, + { + op: "unlink-snap", + name: "/snap/foo/35", + }, + }) +} + +func (s *linkSnapSuite) TestDoLinkSnapSuccessCoreRestarts(c *C) { + restore := release.MockOnClassic(true) + defer restore() + + s.state.Lock() + si := &snap.SideInfo{ + RealName: "core", + Revision: snap.R(33), + } | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/mount_snap_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/mount_snap_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/prepare_snap_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/prepare_snap_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/progress.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/progress.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/progress_test.go ^ |
| (renamed from snapd-2.23.5/overlord/snapstate/progress_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/snapmgr.go ^ |
| @@ -0,0 +1,1458 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +// Package snapstate implements the manager and state aspects responsible for the installation and removal of snaps. +package snapstate + +import ( + "encoding/json" + "errors" + "fmt" + "math/rand" + "os" + "strconv" + "strings" + "time" + + "gopkg.in/tomb.v2" + + "github.com/snapcore/snapd/boot" + "github.com/snapcore/snapd/errtracker" + "github.com/snapcore/snapd/i18n" + "github.com/snapcore/snapd/logger" + "github.com/snapcore/snapd/osutil" + "github.com/snapcore/snapd/overlord/auth" + "github.com/snapcore/snapd/overlord/configstate/config" + "github.com/snapcore/snapd/overlord/snapstate/backend" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/release" + "github.com/snapcore/snapd/snap" + "github.com/snapcore/snapd/store" + "github.com/snapcore/snapd/strutil" +) + +// FIXME: what we actually want is a schedule spec that is user configurable +// like: +// """ +// tue +// tue,thu +// tue-thu +// 9:00 +// 9:00,15:00 +// 9:00-15:00 +// tue,thu@9:00-15:00 +// tue@9:00;thu@15:00 +// mon,wed-fri@9:00-11:00,13:00-15:00 +// """ +// where 9:00 is implicitly taken as 9:00-10:00 +// and tue is implicitly taken as tue@<our current setting?> +// +// it is controlled via: +// $ snap refresh --schedule=<time spec> +// which is a shorthand for +// $ snap set core refresh.schedule=<time spec> +// and we need to validate the time-spec, ideally internally by +// intercepting the set call +var ( + minRefreshInterval = 4 * time.Hour + + // random interval on top of the minmum time between refreshes + defaultRefreshRandomness = 4 * time.Hour +) + +var ( + errtrackerReport = errtracker.Report +) + +// SnapManager is responsible for the installation and removal of snaps. +type SnapManager struct { + state *state.State + backend managerBackend + + refreshRandomness time.Duration + lastRefreshAttempt time.Time + + lastUbuntuCoreTransitionAttempt time.Time + + runner *state.TaskRunner +} + +// SnapSetup holds the necessary snap details to perform most snap manager tasks. +type SnapSetup struct { + // FIXME: rename to RequestedChannel to convey the meaning better + Channel string `json:"channel,omitempty"` + UserID int `json:"user-id,omitempty"` + + Flags + + SnapPath string `json:"snap-path,omitempty"` + + DownloadInfo *snap.DownloadInfo `json:"download-info,omitempty"` + SideInfo *snap.SideInfo `json:"side-info,omitempty"` +} + +func (snapsup *SnapSetup) Name() string { + if snapsup.SideInfo.RealName == "" { + panic("SnapSetup.SideInfo.RealName not set") + } + return snapsup.SideInfo.RealName +} + +func (snapsup *SnapSetup) Revision() snap.Revision { + return snapsup.SideInfo.Revision +} + +func (snapsup *SnapSetup) placeInfo() snap.PlaceInfo { + return snap.MinimalPlaceInfo(snapsup.Name(), snapsup.Revision()) +} + +func (snapsup *SnapSetup) MountDir() string { + return snap.MountDir(snapsup.Name(), snapsup.Revision()) +} + +func (snapsup *SnapSetup) MountFile() string { + return snap.MountFile(snapsup.Name(), snapsup.Revision()) +} + +// SnapState holds the state for a snap installed in the system. +type SnapState struct { + SnapType string `json:"type"` // Use Type and SetType + Sequence []*snap.SideInfo `json:"sequence"` + Active bool `json:"active,omitempty"` + // Current indicates the current active revision if Active is + // true or the last active revision if Active is false + // (usually while a snap is being operated on or disabled) + Current snap.Revision `json:"current"` + Channel string `json:"channel,omitempty"` + Flags +} + +// Type returns the type of the snap or an error. +// Should never error if Current is not nil. +func (snapst *SnapState) Type() (snap.Type, error) { + if snapst.SnapType == "" { + return snap.Type(""), fmt.Errorf("snap type unset") + } + return snap.Type(snapst.SnapType), nil +} + +// SetType records the type of the snap. +func (snapst *SnapState) SetType(typ snap.Type) { + snapst.SnapType = string(typ) +} + +// HasCurrent returns whether snapst.Current is set. +func (snapst *SnapState) HasCurrent() bool { + if snapst.Current.Unset() { + if len(snapst.Sequence) > 0 { + panic(fmt.Sprintf("snapst.Current and snapst.Sequence out of sync: %#v %#v", snapst.Current, snapst.Sequence)) + } + + return false + } + return true +} + +// LocalRevision returns the "latest" local revision. Local revisions +// start at -1 and are counted down. +func (snapst *SnapState) LocalRevision() snap.Revision { + var local snap.Revision + for _, si := range snapst.Sequence { + if si.Revision.Local() && si.Revision.N < local.N { + local = si.Revision + } + } + return local +} + +// TODO: unexport CurrentSideInfo and HasCurrent? + +// CurrentSideInfo returns the side info for the revision indicated by snapst.Current in the snap revision sequence if there is one. +func (snapst *SnapState) CurrentSideInfo() *snap.SideInfo { + if !snapst.HasCurrent() { + return nil + } + if idx := snapst.LastIndex(snapst.Current); idx >= 0 { + return snapst.Sequence[idx] + } + panic("cannot find snapst.Current in the snapst.Sequence") +} + +func (snapst *SnapState) previousSideInfo() *snap.SideInfo { + n := len(snapst.Sequence) + if n < 2 { | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/snapmgr_test.go ^ |
| @@ -0,0 +1,6028 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +package snapstate_test + +import ( + "encoding/json" + "errors" + "fmt" + "io/ioutil" + "os" + "path/filepath" + "sort" + "testing" + "time" + + . "gopkg.in/check.v1" + + "github.com/snapcore/snapd/dirs" + "github.com/snapcore/snapd/overlord/auth" + "github.com/snapcore/snapd/overlord/configstate/config" + "github.com/snapcore/snapd/overlord/snapstate" + "github.com/snapcore/snapd/overlord/snapstate/backend" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/release" + "github.com/snapcore/snapd/snap" + "github.com/snapcore/snapd/snap/snaptest" + "github.com/snapcore/snapd/store" + + // So it registers Configure. + _ "github.com/snapcore/snapd/overlord/configstate" +) + +func TestSnapManager(t *testing.T) { TestingT(t) } + +type snapmgrTestSuite struct { + state *state.State + snapmgr *snapstate.SnapManager + + fakeBackend *fakeSnappyBackend + fakeStore *fakeStore + + user *auth.UserState + + reset func() +} + +func (s *snapmgrTestSuite) settle() { + // FIXME: use the real settle here + for i := 0; i < 50; i++ { + s.snapmgr.Ensure() + s.snapmgr.Wait() + } +} + +var _ = Suite(&snapmgrTestSuite{}) + +func (s *snapmgrTestSuite) SetUpTest(c *C) { + s.fakeBackend = &fakeSnappyBackend{} + s.state = state.New(nil) + s.fakeStore = &fakeStore{ + fakeCurrentProgress: 75, + fakeTotalProgress: 100, + fakeBackend: s.fakeBackend, + state: s.state, + } + + var err error + s.snapmgr, err = snapstate.Manager(s.state) + c.Assert(err, IsNil) + s.snapmgr.AddForeignTaskHandlers(s.fakeBackend) + + snapstate.SetSnapManagerBackend(s.snapmgr, s.fakeBackend) + + restore1 := snapstate.MockReadInfo(s.fakeBackend.ReadInfo) + restore2 := snapstate.MockOpenSnapFile(s.fakeBackend.OpenSnapFile) + + s.reset = func() { + restore2() + restore1() + } + + s.state.Lock() + snapstate.ReplaceStore(s.state, s.fakeStore) + s.user, err = auth.NewUser(s.state, "username", "email@test.com", "macaroon", []string{"discharge"}) + c.Assert(err, IsNil) + s.state.Unlock() + + snapstate.AutoAliases = func(*state.State, *snap.Info) ([]string, error) { + return nil, nil + } +} + +func (s *snapmgrTestSuite) TearDownTest(c *C) { + snapstate.ValidateRefreshes = nil + snapstate.AutoAliases = nil + snapstate.CanAutoRefresh = nil + s.reset() +} + +func (s *snapmgrTestSuite) TestStore(c *C) { + s.state.Lock() + defer s.state.Unlock() + + sto := &store.Store{} + snapstate.ReplaceStore(s.state, sto) + store1 := snapstate.Store(s.state) + c.Check(store1, Equals, sto) + + // cached + store2 := snapstate.Store(s.state) + c.Check(store2, Equals, sto) +} + +const ( + unlinkBefore = 1 << iota + cleanupAfter + maybeCore +) + +func taskKinds(tasks []*state.Task) []string { + kinds := make([]string, len(tasks)) + for i, task := range tasks { + kinds[i] = task.Kind() + } + return kinds +} + +func verifyInstallUpdateTasks(c *C, opts, discards int, ts *state.TaskSet, st *state.State) { + kinds := taskKinds(ts.Tasks()) + + expected := []string{ + "download-snap", + "validate-snap", + "mount-snap", + } + if opts&unlinkBefore != 0 { + expected = append(expected, + "stop-snap-services", + "remove-aliases", + "unlink-current-snap", + ) + } + expected = append(expected, + "copy-snap-data", + "setup-profiles", + "link-snap", + ) + if opts&maybeCore != 0 { + expected = append(expected, "setup-profiles") + } + expected = append(expected, + "set-auto-aliases", + "setup-aliases", + "start-snap-services", + ) + for i := 0; i < discards; i++ { + expected = append(expected, + "clear-snap", + "discard-snap", + ) + } + if opts&cleanupAfter != 0 { + expected = append(expected, + "cleanup", + ) + } + expected = append(expected, + "run-hook", + ) + + c.Assert(kinds, DeepEquals, expected) +} + +func verifyRemoveTasks(c *C, ts *state.TaskSet) { + c.Assert(taskKinds(ts.Tasks()), DeepEquals, []string{ + "stop-snap-services", + "remove-aliases", + "unlink-snap", + "remove-profiles", + "clear-snap", + "discard-snap", + "clear-aliases", | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/snapstate/snapstate.go ^ |
| @@ -0,0 +1,1479 @@ +// -*- Mode: Go; indent-tabs-mode: t -*- + +/* + * Copyright (C) 2016 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +// Package snapstate implements the manager and state aspects responsible for the installation and removal of snaps. +package snapstate + +import ( + "encoding/json" + "fmt" + "reflect" + "sort" + + "github.com/snapcore/snapd/boot" + "github.com/snapcore/snapd/i18n/dumb" + "github.com/snapcore/snapd/logger" + "github.com/snapcore/snapd/overlord/auth" + "github.com/snapcore/snapd/overlord/state" + "github.com/snapcore/snapd/release" + "github.com/snapcore/snapd/snap" + "github.com/snapcore/snapd/store" +) + +// control flags for doInstall +const ( + maybeCore = 1 << iota +) + +// control flags for "Configure()" +const ( + IgnoreHookError = 1 << iota + TrackHookError +) + +func needsMaybeCore(typ snap.Type) int { + if typ == snap.TypeOS { + return maybeCore + } + return 0 +} + +func doInstall(st *state.State, snapst *SnapState, snapsup *SnapSetup, flags int) (*state.TaskSet, error) { + if snapsup.Flags.Classic && !release.OnClassic { + return nil, fmt.Errorf("classic confinement is only supported on classic systems") + } + if !snapst.HasCurrent() { // install? + // check that the snap command namespace doesn't conflict with an enabled alias + if err := checkSnapAliasConflict(st, snapsup.Name()); err != nil { + return nil, err + } + } + + if err := CheckChangeConflict(st, snapsup.Name(), snapst); err != nil { + return nil, err + } + + targetRevision := snapsup.Revision() + revisionStr := "" + if snapsup.SideInfo != nil { + revisionStr = fmt.Sprintf(" (%s)", targetRevision) + } + + // check if we already have the revision locally (alters tasks) + revisionIsLocal := snapst.LastIndex(targetRevision) >= 0 + + var prepare, prev *state.Task + fromStore := false + // if we have a local revision here we go back to that + if snapsup.SnapPath != "" || revisionIsLocal { + prepare = st.NewTask("prepare-snap", fmt.Sprintf(i18n.G("Prepare snap %q%s"), snapsup.SnapPath, revisionStr)) + } else { + fromStore = true + prepare = st.NewTask("download-snap", fmt.Sprintf(i18n.G("Download snap %q%s from channel %q"), snapsup.Name(), revisionStr, snapsup.Channel)) + } + prepare.Set("snap-setup", snapsup) + + tasks := []*state.Task{prepare} + addTask := func(t *state.Task) { + t.Set("snap-setup-task", prepare.ID()) + t.WaitFor(prev) + tasks = append(tasks, t) + } + prev = prepare + + if fromStore { + // fetch and check assertions + checkAsserts := st.NewTask("validate-snap", fmt.Sprintf(i18n.G("Fetch and check assertions for snap %q%s"), snapsup.Name(), revisionStr)) + addTask(checkAsserts) + prev = checkAsserts + } + + // mount + if !revisionIsLocal { + mount := st.NewTask("mount-snap", fmt.Sprintf(i18n.G("Mount snap %q%s"), snapsup.Name(), revisionStr)) + addTask(mount) + prev = mount + } + + if snapst.Active { + // unlink-current-snap (will stop services for copy-data) + stop := st.NewTask("stop-snap-services", fmt.Sprintf(i18n.G("Stop snap %q services"), snapsup.Name())) + addTask(stop) + prev = stop + + removeAliases := st.NewTask("remove-aliases", fmt.Sprintf(i18n.G("Remove aliases for snap %q"), snapsup.Name())) + addTask(removeAliases) + prev = removeAliases + + unlink := st.NewTask("unlink-current-snap", fmt.Sprintf(i18n.G("Make current revision for snap %q unavailable"), snapsup.Name())) + addTask(unlink) + prev = unlink + } + + // copy-data (needs stopped services by unlink) + if !snapsup.Flags.Revert { + copyData := st.NewTask("copy-snap-data", fmt.Sprintf(i18n.G("Copy snap %q data"), snapsup.Name())) + addTask(copyData) + prev = copyData + } + + // security + setupSecurity := st.NewTask("setup-profiles", fmt.Sprintf(i18n.G("Setup snap %q%s security profiles"), snapsup.Name(), revisionStr)) + addTask(setupSecurity) + prev = setupSecurity + + // finalize (wrappers+current symlink) + linkSnap := st.NewTask("link-snap", fmt.Sprintf(i18n.G("Make snap %q%s available to the system"), snapsup.Name(), revisionStr)) + addTask(linkSnap) + prev = linkSnap + + // security: phase 2, no-op unless core + if flags&maybeCore != 0 { + setupSecurityPhase2 := st.NewTask("setup-profiles", fmt.Sprintf(i18n.G("Setup snap %q%s security profiles (phase 2)"), snapsup.Name(), revisionStr)) + setupSecurityPhase2.Set("core-phase-2", true) + addTask(setupSecurityPhase2) + prev = setupSecurityPhase2 + } + + // setup aliases + setAutoAliases := st.NewTask("set-auto-aliases", fmt.Sprintf(i18n.G("Set automatic aliases for snap %q"), snapsup.Name())) + addTask(setAutoAliases) + prev = setAutoAliases + + setupAliases := st.NewTask("setup-aliases", fmt.Sprintf(i18n.G("Setup snap %q aliases"), snapsup.Name())) + addTask(setupAliases) + prev = setupAliases + + // run new serices + startSnapServices := st.NewTask("start-snap-services", fmt.Sprintf(i18n.G("Start snap %q%s services"), snapsup.Name(), revisionStr)) + addTask(startSnapServices) + prev = startSnapServices + + // Do not do that if we are reverting to a local revision + if snapst.HasCurrent() && !snapsup.Flags.Revert { + seq := snapst.Sequence + currentIndex := snapst.LastIndex(snapst.Current) + + // discard everything after "current" (we may have reverted to + // a previous versions earlier) + for i := currentIndex + 1; i < len(seq); i++ { + si := seq[i] + if si.Revision == targetRevision { + // but don't discard this one; its' the thing we're switching to! + continue + } + ts := removeInactiveRevision(st, snapsup.Name(), si.Revision) + ts.WaitFor(prev) + tasks = append(tasks, ts.Tasks()...) + prev = tasks[len(tasks)-1] + } + + // make sure we're not scheduling the removal of the target + // revision in the case where the target revision is already in + // the sequence. + for i := 0; i < currentIndex; i++ { + si := seq[i] + if si.Revision == targetRevision { + // we do *not* want to removeInactiveRevision of this one + copy(seq[i:], seq[i+1:]) + seq = seq[:len(seq)-1] + currentIndex-- + } + } + | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/change.go ^ |
| (renamed from snapd-2.23.5/overlord/state/change.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/change_test.go ^ |
| (renamed from snapd-2.23.5/overlord/state/change_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/export_test.go ^ |
| (renamed from snapd-2.23.5/overlord/state/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/state.go ^ |
| (renamed from snapd-2.23.5/overlord/state/state.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/state_test.go ^ |
| (renamed from snapd-2.23.5/overlord/state/state_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/task.go ^ |
| (renamed from snapd-2.23.5/overlord/state/task.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/task_test.go ^ |
| (renamed from snapd-2.23.5/overlord/state/task_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/taskrunner.go ^ |
| (renamed from snapd-2.23.5/overlord/state/taskrunner.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/state/taskrunner_test.go ^ |
| (renamed from snapd-2.23.5/overlord/state/taskrunner_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/stateengine.go ^ |
| (renamed from snapd-2.23.5/overlord/stateengine.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/overlord/stateengine_test.go ^ |
| (renamed from snapd-2.23.5/overlord/stateengine_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04 ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/changelog ^ |
| @@ -0,0 +1,2635 @@ +snapd (2.23.6~14.04) trusty; urgency=medium + + * New upstream release, LP: #1665608 + - cmd: use the most appropriate snap/snapctl sockets + - tests: fix interfaces-cups-control for zesty + - configstate,hookstate: timeout the configure hook after 5 mins, + report failures + - many: ignore configure hook failures on core refresh to ensure + upgrades are always possible + - snapstate: restart as needed if we undid unlinking aka relinked + core or kernel snap + + -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 29 Mar 2017 15:30:32 +0200 + +snapd (2.23.1~14.04) trusty; urgency=medium + + * New upstream release, LP: #1665608 + - packaging, tests: use "systemctl list-unit-files --full" + everywhere + - interfaces: fix default content attribute value + - tests: do not nuke the entire snapd.conf.d dir when changing + store settings + - hookstate: run the right "snap" command in the hookmanager + - snapstate: revert PR#2958, run configure hook again everywhere + + -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 08 Mar 2017 14:29:56 +0100 + +snapd (2.23~14.04) trusty; urgency=medium + + * New upstream release, LP: #1665608 + - overlord: phase 2 with 2nd setup-profiles and hook done after + restart for core installation + - data: re-add snapd.refresh.{timer,service} with weekly schedule + - interfaces: allow 'getent' by default with some missing dbs to + various interfaces + - overlord/snapstate: drop forced devmode + - snapstate: disable running the configure hook on classic for the + core snap + - ifacestate: re-generate apparmor in InterfaceManager.initialize() + - daemon: DevModeDistro does not imply snapstate.Flags{DevMode:true} + - interfaces/bluez,network-manager: implement ConnectedSlot policy + - cmd: add helpers for mounting / unmounting + - snapstate: error in LinkSnap() if revision is unset + - release: add linuxmint 18 to the non-devmode distros + - cmd: fixes to run correctly on opensuse + - interfaces: consistently use 'const' instead of 'var' for security + policy + - interfaces: miscellaneous policy updates for unity7, udisks2 and + browser-support + - interfaces/apparmor: compensate for kernel behavior change + - many: only tweak core config if hook exists + - overlord/hookstate: don't report a run hook output error without + any context + - cmd/snap-update-ns: move test data and helpers to new module + - vet: fix vet error on mount test. + - tests: empty init (systemd) failover test + - cmd: add .indent.pro file to the tree + - interfaces: specs for apparmor, seccomp, udev + - wrappers/services: RemainAfterExit=yes for oneshot daemons w/ stop + cmds + - tests: several improvements to the nested suite + - tests: do not use core for "All snaps up to date" check + - cmd/snap-update-ns: add function for sorting mount entries + - httputil: copy some headers over redirects + - data/selinux: merge SELinux policy module + - kmod: added Specification for kmod security backend + - tests: failover test for rc.local crash + - debian/tests: map snapd deb pockets to core snap channels for + autopkgtest + - many: switch channels on refresh if needed + - interfaces/builtin: add /boot/uboot/config.txt access to core- + support + - release: assume higher version of supported distros will still + work + - cmd/snap-update-ns: add compare function for mount entries + - tests: enable docker test + - tests: bail out if core snap is not installed + - interfaces: use mount.Entry instead of string snippets. + - osutil: trivial tweaks to build ID support + - many: display kernel version in 'snap version' + - osutil: add package for reading Build-ID + - snap: error when `snap list foo` is run and no snap is installed + - cmd/snap-confine: don't crash if nvidia module is loaded but + drivers are not available + - tests: update listing test for latest core snap version update + - overlord/hookstate/ctlcmd: helper function for creating a deep + copy of interface attributes + - interfaces: add a linux framebuffer interface + - cmd/snap, store: change error messages to reflect latest UX doc + - interfaces: initial unity8 interface + - asserts: improved information about assertions format in the + Decode doc comment + - snapstate: ensure snapstate.CanAutoRefresh is nil in tests + - mkversion.sh: Add support for taking the version as a parameter + - interfaces: add an interface for use by thumbnailer + - cmd/snap-confine: ensure that hostfs is root owned. + - screen-inhibit-control: add methods for delaying screensavers + - overlord: optional device registration and gadget support on + classic + - overlord: make seeding work also on classic, optionally + - image,cmd/snap: refactoring and initial envvar support to use + stores needing auth + - tests: add libvirt interface spread test + - cmd/libsnap: add helper for dropping permissions + - interfaces: misc updates for network-control, firewall-control, + unity7 and default policy + - interfaces: allow recv* and send* by default, accept4 with accept + and other cleanups + - interfaces/builtin: add classic-support interface + - store: use xdelta3 from core if available and not on the regular + system + - snap: add contact: line in `snap info` + - interfaces/builtin: add network-setup-control which allows rw + access to netplan + - unity7: support missing signals and methods for status icons + - cmd: autoconf for RHEL + - cmd/snap-confine: look for PROCFS_SUPER_MAGIC + - dirs: use the right snap mount dir for the distribution + - many: differentiate between "distro" and "core" libexecdir + - cmd: don't reexec on RHEL family + - config: make helpers reusable + - snap-exec: support nested environment variables in environment + - release: add galliumos support + - interfaces/builtin: more path options for serial + - i18n: look into core snaps when checking for translations + - tests: nested image testing + - tests: add basic test for docker + - hookstate,ifacestate: support snapctl set/get slot and plug attrs + (step 3) + - cmd/snap: add shell completion to connect + - cmd: add functions to load/save fstab-like files + - snap run: create "current" symlink in user data dir + - cmd: autoconf for centos + - tests: add more debug if ubuntu-core-upgrade fails + - tests: increase service retries + - packaging/ubuntu-14.04: inform user how to extend PATH with + /snap/bin. + - cmd: add helpers for working with mount/umount commands + - overlord/snapstate: prepare for using snap-update-ns + - cmd: use per-snap mount profile to populate the mount namespace + - overlord/ifacestate: setup seccomp security on startup + - interface/seccomp: sort combined snippets + - release: don't force devmode on LinuxMint "serena" + - tests: filter ubuntu-core systems for authenticated find-private + test + - interfaces/builtin/core-support: Allow modifying logind + configuration from the core snap + - tests: fix "snap managed" output check and suppress output from + expect in the authenticated login tests + - interfaces: shutdown: also allow shutdown/reboot/suspend via + logind + - cmd/snap-confine-tests: reformat test to pass shellcheck + - cmd: add sc_is_debug_enabled + - interfaces/mount: add dedicated mount entry type + - interfaces/core-support: allow modifying systemd-timesyncd and + sysctl configuration + - snap: improve message after `snap refresh pkg1 pkg2` + - tests: improve snap-env test + - interfaces/io-ports-control: use /dev/port, not /dev/ports + - interfaces/mount-observe: add quotactl with arg filtering (LP: + #1626359) + - interfaces/mount: generate per-snap mount profile + - tests: add spread test for delta downloads + - daemon: show "$snapname (delta)" in progress when downloading + deltas + - cmd: use safer functions in sc_mount_opt2str + - asserts: introduce a variant of model assertions for classic + systems + - interfaces/core-support: allow modifying snap rsyslog + configuration + - interfaces: remove some syscalls already in the default policy + plus comment cleanups + - interfaces: miscellaneous updates for hardware-observe, kernel- + module-control, unity7 and default + - snap-confine: add the key for which hsearch_r fails + - snap: improve the error message for `snap try` + - tests: fix pattern and use MATCH in find-private + - tests: stop tying setting up staging store access to the setup of + the state tarball + - tests: add regression spread test for #1660941 + - interfaces/default: don't allow TIOCSTI ioctl + - interfaces: allow nice/setpriority to 0-19 values for calling + process by default + - tests: improve debug when the core transition test hangs + - tests: disable ubuntu-core->core transition on ppc64el (its just + too slow) + - snapstate: move refresh from a systemd timer to the internal + snapstate Ensure() + - tests/lib/fakestore/refresh: some more info when we fail to copy + asserts + - overlord/devicestate: backoff between retries if the server seems + to have refused the serial-request + - image: check kernel/gadget publisher vs model brand, warn on store + disconnected snaps + - vendor: move gettext.go back to github.com/ojii/gettext.go + - store: retry on 502 http response as well + - tests: increase snap-service kill-timeout + - store,osutil: use new osutil.ExecutableExists(exe) check to only + use deltas if xdelta3 is present | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/compat ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/compat) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/control ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/control) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/copyright ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/copyright) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/gbp.conf ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/gbp.conf) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/golang-github-snapcore-snapd-dev.install ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/golang-github-snapcore-snapd-dev.install) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/not-installed ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/not-installed) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/rules ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/rules) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snap.mount.service ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snap.mount.service) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.autoimport.service ^ |
| @@ -0,0 +1,10 @@ +[Unit] +Description=Auto import assertions from block devices +After=snapd.service snapd.socket + +[Service] +Type=oneshot +ExecStart=/usr/bin/snap auto-import + +[Install] +WantedBy=multi-user.target | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.autoimport.udev ^ |
| @@ -0,0 +1,3 @@ +# probe for assertions, must run before udisks2 +ACTION=="add", SUBSYSTEM=="block" \ + RUN+="/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/%k" | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.dirs ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/snapd.dirs) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.install ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.install) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.maintscript ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/snapd.maintscript) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.manpages ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/snapd.manpages) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.postinst ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.postinst) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.postrm ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.postrm) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.prerm ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.prerm) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.refresh.service ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.refresh.service) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.refresh.timer ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/snapd.refresh.timer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.service ^ |
| @@ -0,0 +1,11 @@ +[Unit] +Description=Snappy daemon +Requires=snapd.socket + +[Service] +ExecStart=/usr/lib/snapd/snapd +EnvironmentFile=/etc/environment +Restart=always + +[Install] +WantedBy=multi-user.target | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.socket ^ |
| @@ -0,0 +1,13 @@ +[Unit] +Description=Socket activation for snappy daemon + +[Socket] +ListenStream=/run/snapd.socket +ListenStream=/run/snapd-snap.socket +SocketMode=0666 +# these are the defaults, but can't hurt to specify them anyway: +SocketUser=root +SocketGroup=root + +[Install] +WantedBy=sockets.target | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/snapd.system-shutdown.service ^ |
| @@ -0,0 +1,15 @@ +[Unit] +Description=Ubuntu core (all-snaps) system shutdown helper setup service +Before=umount.target +DefaultDependencies=false +# don't run on classic +ConditionKernelCommandLine=snap_core +# don't run if system-shutdown isn't there +ConditionPathExists=/usr/lib/snapd/system-shutdown + +[Service] +Type=oneshot +ExecStart=/bin/sh -euc 'mount /run -o remount,exec; mkdir -p /run/initramfs; cp /usr/lib/snapd/system-shutdown /run/initramfs/shutdown' + +[Install] +WantedBy=final.target | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/source ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/source/format ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/source/format) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/tests ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/tests/README.md ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/tests/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/tests/control ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/tests/control) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/tests/integrationtests ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-14.04/tests/integrationtests) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/tests/testconfig.json ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/tests/testconfig.json) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-14.04/ubuntu-snappy-cli.dirs ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/ubuntu-snappy-cli.dirs) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04 ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/changelog ^ |
| @@ -0,0 +1,2685 @@ +snapd (2.23.6) xenial; urgency=medium + + * New upstream release, LP: #1673568 + - cmd: use the most appropriate snap/snapctl sockets + - tests: fix interfaces-cups-control for zesty + - configstate,hookstate: timeout the configure hook after 5 mins, + report failures + - packaging: rename the file shipping snap-confine AA profile to + workaround dpkg bug #858004 + - many: ignore configure hook failures on core refresh to ensure + upgrades are always possible + - snapstate: restart as needed if we undid unlinking aka relinked + core or kernel snap + + -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 29 Mar 2017 15:30:35 +0200 + +snapd (2.23.5) xenial; urgency=medium + + * New upstream release, LP: #1673568 + - allow "sync" in core-support + + -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 17 Mar 2017 18:13:43 +0100 + +snapd (2.23.4) xenial; urgency=medium + + * New upstream release, LP: #1673568 + - fix core-support interface for the new pi-config options + + -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 17 Mar 2017 16:05:57 +0100 + +snapd (2.23.3) xenial; urgency=medium + + * FTBFS due to missing files in vendor/ + + -- Zygmunt Krynicki <zygmunt.krynicki@canonical.com> Thu, 16 Mar 2017 19:56:55 +0100 + +snapd (2.23.2) xenial; urgency=medium + + * New upstream release, LP: #1673568 + - cmd/snap: handle missing snap-confine (#3041) + + -- Zygmunt Krynicki <zygmunt.krynicki@canonical.com> Thu, 16 Mar 2017 19:38:24 +0100 + +snapd (2.23.1) xenial; urgency=medium + + * New upstream release, LP: #1665608 + - packaging, tests: use "systemctl list-unit-files --full" + everywhere + - interfaces: fix default content attribute value + - tests: do not nuke the entire snapd.conf.d dir when changing + store settings + - hookstate: run the right "snap" command in the hookmanager + - snapstate: revert PR#2958, run configure hook again everywhere + + -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 08 Mar 2017 14:29:56 +0100 + +snapd (2.23) xenial; urgency=medium + + * New upstream release, LP: #1665608 + - overlord: phase 2 with 2nd setup-profiles and hook done after + restart for core installation + - data: re-add snapd.refresh.{timer,service} with weekly schedule + - interfaces: allow 'getent' by default with some missing dbs to + various interfaces + - overlord/snapstate: drop forced devmode + - snapstate: disable running the configure hook on classic for the + core snap + - ifacestate: re-generate apparmor in InterfaceManager.initialize() + - daemon: DevModeDistro does not imply snapstate.Flags{DevMode:true} + - interfaces/bluez,network-manager: implement ConnectedSlot policy + - cmd: add helpers for mounting / unmounting + - snapstate: error in LinkSnap() if revision is unset + - release: add linuxmint 18 to the non-devmode distros + - cmd: fixes to run correctly on opensuse + - interfaces: consistently use 'const' instead of 'var' for security + policy + - interfaces: miscellaneous policy updates for unity7, udisks2 and + browser-support + - interfaces/apparmor: compensate for kernel behavior change + - many: only tweak core config if hook exists + - overlord/hookstate: don't report a run hook output error without + any context + - cmd/snap-update-ns: move test data and helpers to new module + - vet: fix vet error on mount test. + - tests: empty init (systemd) failover test + - cmd: add .indent.pro file to the tree + - interfaces: specs for apparmor, seccomp, udev + - wrappers/services: RemainAfterExit=yes for oneshot daemons w/ stop + cmds + - tests: several improvements to the nested suite + - tests: do not use core for "All snaps up to date" check + - cmd/snap-update-ns: add function for sorting mount entries + - httputil: copy some headers over redirects + - data/selinux: merge SELinux policy module + - kmod: added Specification for kmod security backend + - tests: failover test for rc.local crash + - debian/tests: map snapd deb pockets to core snap channels for + autopkgtest + - many: switch channels on refresh if needed + - interfaces/builtin: add /boot/uboot/config.txt access to core- + support + - release: assume higher version of supported distros will still + work + - cmd/snap-update-ns: add compare function for mount entries + - tests: enable docker test + - tests: bail out if core snap is not installed + - interfaces: use mount.Entry instead of string snippets. + - osutil: trivial tweaks to build ID support + - many: display kernel version in 'snap version' + - osutil: add package for reading Build-ID + - snap: error when `snap list foo` is run and no snap is installed + - cmd/snap-confine: don't crash if nvidia module is loaded but + drivers are not available + - tests: update listing test for latest core snap version update + - overlord/hookstate/ctlcmd: helper function for creating a deep + copy of interface attributes + - interfaces: add a linux framebuffer interface + - cmd/snap, store: change error messages to reflect latest UX doc + - interfaces: initial unity8 interface + - asserts: improved information about assertions format in the + Decode doc comment + - snapstate: ensure snapstate.CanAutoRefresh is nil in tests + - mkversion.sh: Add support for taking the version as a parameter + - interfaces: add an interface for use by thumbnailer + - cmd/snap-confine: ensure that hostfs is root owned. + - screen-inhibit-control: add methods for delaying screensavers + - overlord: optional device registration and gadget support on + classic + - overlord: make seeding work also on classic, optionally + - image,cmd/snap: refactoring and initial envvar support to use + stores needing auth + - tests: add libvirt interface spread test + - cmd/libsnap: add helper for dropping permissions + - interfaces: misc updates for network-control, firewall-control, + unity7 and default policy + - interfaces: allow recv* and send* by default, accept4 with accept + and other cleanups + - interfaces/builtin: add classic-support interface + - store: use xdelta3 from core if available and not on the regular + system + - snap: add contact: line in `snap info` + - interfaces/builtin: add network-setup-control which allows rw + access to netplan + - unity7: support missing signals and methods for status icons + - cmd: autoconf for RHEL + - cmd/snap-confine: look for PROCFS_SUPER_MAGIC + - dirs: use the right snap mount dir for the distribution + - many: differentiate between "distro" and "core" libexecdir + - cmd: don't reexec on RHEL family + - config: make helpers reusable + - snap-exec: support nested environment variables in environment + - release: add galliumos support + - interfaces/builtin: more path options for serial + - i18n: look into core snaps when checking for translations + - tests: nested image testing + - tests: add basic test for docker + - hookstate,ifacestate: support snapctl set/get slot and plug attrs + (step 3) + - cmd/snap: add shell completion to connect + - cmd: add functions to load/save fstab-like files + - snap run: create "current" symlink in user data dir + - cmd: autoconf for centos + - tests: add more debug if ubuntu-core-upgrade fails + - tests: increase service retries + - packaging/ubuntu-14.04: inform user how to extend PATH with + /snap/bin. + - cmd: add helpers for working with mount/umount commands + - overlord/snapstate: prepare for using snap-update-ns + - cmd: use per-snap mount profile to populate the mount namespace + - overlord/ifacestate: setup seccomp security on startup + - interface/seccomp: sort combined snippets + - release: don't force devmode on LinuxMint "serena" + - tests: filter ubuntu-core systems for authenticated find-private + test + - interfaces/builtin/core-support: Allow modifying logind + configuration from the core snap + - tests: fix "snap managed" output check and suppress output from + expect in the authenticated login tests + - interfaces: shutdown: also allow shutdown/reboot/suspend via + logind + - cmd/snap-confine-tests: reformat test to pass shellcheck + - cmd: add sc_is_debug_enabled + - interfaces/mount: add dedicated mount entry type + - interfaces/core-support: allow modifying systemd-timesyncd and + sysctl configuration + - snap: improve message after `snap refresh pkg1 pkg2` + - tests: improve snap-env test + - interfaces/io-ports-control: use /dev/port, not /dev/ports + - interfaces/mount-observe: add quotactl with arg filtering (LP: + #1626359) + - interfaces/mount: generate per-snap mount profile + - tests: add spread test for delta downloads + - daemon: show "$snapname (delta)" in progress when downloading + deltas + - cmd: use safer functions in sc_mount_opt2str + - asserts: introduce a variant of model assertions for classic + systems + - interfaces/core-support: allow modifying snap rsyslog + configuration | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/compat ^ |
| @@ -0,0 +1,1 @@ +9 | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/control ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/control) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/copyright ^ |
| @@ -0,0 +1,22 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: snappy +Source: https://github.com/snapcore/snapd + +Files: * +Copyright: Copyright (C) 2014,2015 Canonical, Ltd. +License: GPL-3 + This program is free software: you can redistribute it and/or modify it + under the terms of the the GNU General Public License version 3, as + published by the Free Software Foundation. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranties of + MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR + PURPOSE. See the applicable version of the GNU Lesser General Public + License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + . + On Debian systems, the complete text of the GNU General Public License + can be found in `/usr/share/common-licenses/GPL-3' | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/golang-github-snapcore-snapd-dev.install ^ |
| @@ -0,0 +1,1 @@ +debian/tmp/usr/share/gocode/src/* | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/not-installed ^ |
| @@ -0,0 +1,1 @@ +debian/tmp/usr/bin/uboot-go | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/rules ^ |
| @@ -0,0 +1,198 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +#export DH_VERBOSE=1 +export DH_OPTIONS +export DH_GOPKG := github.com/snapcore/snapd +#export DEB_BUILD_OPTIONS=nocheck +export DH_GOLANG_EXCLUDES=tests +export DH_GOLANG_GO_GENERATE=1 + +export PATH:=${PATH}:${CURDIR} +# make sure that correct go version is found on trusty +export PATH:=/usr/lib/go-1.6/bin:${PATH} + +include /etc/os-release + +# this is overridden in the ubuntu/14.04 release branch +SYSTEMD_UNITS_DESTDIR="lib/systemd/system/" + +# The go tool does not fully support vendoring with gccgo, but we can +# work around that by constructing the appropriate -I flag by hand. +GCCGO := $(shell go tool dist env > /dev/null 2>&1 && echo no || echo yes) + +BUILDFLAGS:=-buildmode=pie -pkgdir=$(CURDIR)/_build/std +GCCGOFLAGS= +ifeq ($(GCCGO),yes) +GOARCH := $(shell go env GOARCH) +GOOS := $(shell go env GOOS) +BUILDFLAGS:= +GCCGOFLAGS=-gccgoflags="-I $(CURDIR)/_build/pkg/gccgo_$(GOOS)_$(GOARCH)/$(DH_GOPKG)/vendor" +export DH_GOLANG_GO_GENERATE=0 +endif + +# check if we need to include the testkeys in the binary +TAGS= +ifneq (,$(filter testkeys,$(DEB_BUILD_OPTIONS))) + TAGS=-tags withtestkeys +endif + +# export DEB_BUILD_MAINT_OPTIONS = hardening=+all +# DPKG_EXPORT_BUILDFLAGS = 1 +# include /usr/share/dpkg/buildflags.mk + +# Currently, we enable confinement for Ubuntu only, not for derivatives, +# because derivatives may have different kernels that don't support all the +# required confinement features and we don't to mislead anyone about the +# security of the system. Discuss a proper approach to this for downstreams +# if and when they approach us +ifeq ($(shell dpkg-vendor --query Vendor),Ubuntu) + VENDOR_ARGS=--enable-nvidia-ubuntu +else + VENDOR_ARGS=--disable-apparmor +endif + +%: + dh $@ --buildsystem=golang --with=golang --fail-missing --with systemd --builddirectory=_build + +override_dh_fixperms: + dh_fixperms -Xusr/lib/snapd/snap-confine + + +# The .real profile is a workaround for a bug in dpkg LP: #1673247 that causes +# ubiquity to crash. It allows us to "move" the snap-confine profile from +# snap-confine into snapd in a way that works with old dpkg that is in the live +# CD image. +# +# Because both the usual and the .real profile describe the same binary the +# .real profile takes priority (as it is loaded later). +override_dh_installdeb: + dh_apparmor --profile-name=usr.lib.snapd.snap-confine.real -psnapd + dh_installdeb + +override_dh_clean: +ifneq (,$(TEST_GITHUB_AUTOPKGTEST)) + # this will be set by the GITHUB webhook to trigger a autopkgtest + # we only need to run "govendor sync" here and then its ready + (export GOPATH="/tmp/go"; \ + mkdir -p $$GOPATH/src/github.com/snapcore/; \ + cp -ar . $$GOPATH/src/github.com/snapcore/snapd; \ + go get -u github.com/kardianos/govendor; \ + (cd $$GOPATH/src/github.com/snapcore/snapd ; $$GOPATH/bin/govendor sync); \ + cp -ar $$GOPATH/src/github.com/snapcore/snapd/vendor/ .; \ + ) +endif + dh_clean + # XXX: hacky + $(MAKE) -C cmd distclean || true + +override_dh_auto_build: + # usually done via `go generate` but that is not supported on powerpc + ./mkversion.sh + # Build golang bits + mkdir -p _build/src/$(DH_GOPKG)/cmd/snap/test-data + cp -a cmd/snap/test-data/*.gpg _build/src/$(DH_GOPKG)/cmd/snap/test-data/ + dh_auto_build -- $(BUILDFLAGS) $(TAGS) $(GCCGOFLAGS) + # Build C bits, sadly manually + cd cmd && ( autoreconf -i -f ) + cd cmd && ( ./configure --prefix=/usr --libexecdir=/usr/lib/snapd $(VENDOR_ARGS)) + $(MAKE) -C cmd all + +override_dh_auto_test: + dh_auto_test -- $(GCCGOFLAGS) +# a tested default (production) build should have no test keys +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + # check that only the main trusted account-key is included + [ $$(strings _build/bin/snapd|grep -c -E "public-key-sha3-384: [a-zA-Z0-9_-]{64}") -eq 1 ] + strings _build/bin/snapd|grep -c "^public-key-sha3-384: -CvQKAwRQ5h3Ffn10FILJoEZUXOv6km9FwA80-Rcj-f-6jadQ89VRswHNiEB9Lxk$$" +endif +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + # run the snap-confine tests + $(MAKE) -C cmd check +endif + +override_dh_systemd_enable: + # enable auto-import + dh_systemd_enable \ + -psnapd \ + data/systemd/snapd.autoimport.service + # we want the auto-update timer enabled by default + dh_systemd_enable \ + -psnapd \ + data/systemd/snapd.refresh.timer + # but the auto-update service disabled + dh_systemd_enable \ + --no-enable \ + -psnapd \ + data/systemd/snapd.refresh.service + # enable snapd + dh_systemd_enable \ + -psnapd \ + data/systemd/snapd.socket + dh_systemd_enable \ + -psnapd \ + data/systemd/snapd.service + dh_systemd_enable \ + -psnapd \ + data/systemd/snapd.system-shutdown.service + +override_dh_systemd_start: + # we want to start the auto-update timer + dh_systemd_start \ + -psnapd \ + data/systemd/snapd.refresh.timer + # but not start the service + dh_systemd_start \ + --no-start \ + -psnapd \ + data/systemd/snapd.refresh.service + # start snapd + dh_systemd_start \ + -psnapd \ + data/systemd/snapd.socket + dh_systemd_start \ + -psnapd \ + data/systemd/snapd.service + # start autoimport + dh_systemd_start \ + -psnapd \ + data/systemd/snapd.autoimport.service + +override_dh_install: + # we do not need this in the package, its just needed during build + rm -rf ${CURDIR}/debian/tmp/usr/bin/xgettext-go + # uboot-go is not shippable + rm -f ${CURDIR}/debian/tmp/usr/bin/uboot-go + # toolbelt is not shippable + rm -f ${CURDIR}/debian/tmp/usr/bin/toolbelt + # we do not like /usr/bin/snappy anymore + rm -f ${CURDIR}/debian/tmp/usr/bin/snappy + # i18n stuff + mkdir -p debian/snapd/usr/share + if [ -d share/locale ]; then \ + cp -R share/locale debian/snapd/usr/share; \ + fi + # install snapd's systemd units, done here instead of + # debian/snapd.install because the ubuntu/14.04 release + # branch adds/changes bits here + mkdir -p debian/snapd/$(SYSTEMD_UNITS_DESTDIR) + install --mode=0644 data/systemd/snapd.refresh.timer debian/snapd/$(SYSTEMD_UNITS_DESTDIR) + install --mode=0644 data/systemd/snapd.refresh.service debian/snapd/$(SYSTEMD_UNITS_DESTDIR) + install --mode=0644 data/systemd/snapd.autoimport.service debian/snapd/$(SYSTEMD_UNITS_DESTDIR) + install --mode=0644 data/systemd/*.socket debian/snapd/$(SYSTEMD_UNITS_DESTDIR) + install --mode=0644 data/systemd/snapd.service debian/snapd/$(SYSTEMD_UNITS_DESTDIR) + install --mode=0644 data/systemd/snapd.system-shutdown.service debian/snapd/$(SYSTEMD_UNITS_DESTDIR) + $(MAKE) -C cmd install DESTDIR=$(CURDIR)/debian/tmp + # Rename the apparmor profile, see dh_apparmor call above for an explanation. + mv $(CURDIR)/debian/tmp/etc/apparmor.d/usr.lib.snapd.snap-confine $(CURDIR)/debian/tmp/etc/apparmor.d/usr.lib.snapd.snap-confine.real + dh_install + +override_dh_auto_install: snap.8 + dh_auto_install -O--buildsystem=golang + +snap.8: + $(CURDIR)/_build/bin/snap help --man > $@ + +override_dh_auto_clean: + dh_auto_clean -O--buildsystem=golang + rm -vf snap.8 | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/snapd.autoimport.udev ^ |
| @@ -0,0 +1,3 @@ +# probe for assertions, must run before udisks2 +ACTION=="add", SUBSYSTEM=="block" \ + RUN+="/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/%k" | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/snapd.dirs ^ |
| @@ -0,0 +1,10 @@ +snap +usr/lib/snapd +var/lib/snapd/auto-import +var/lib/snapd/desktop +var/lib/snapd/environment +var/lib/snapd/firstboot +var/lib/snapd/lib/gl +var/lib/snapd/snaps/partial +var/lib/snapd/void +var/snap | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/snapd.install ^ |
| @@ -0,0 +1,31 @@ +usr/bin/snap +usr/bin/snapctl +usr/lib/snapd/system-shutdown +usr/bin/snap-exec /usr/lib/snapd/ +usr/bin/snapd /usr/lib/snapd/ + +# etc/profile.d contains the PATH extension for snap packages +etc/profile.d +# etc/X11/Xsession.d will add to XDG_DATA_DIRS so that we have .desktop support +etc/X11 +# bash completion +data/completion/snap /usr/share/bash-completion/completions +# udev, must be installed before 80-udisks +data/udev/rules.d/66-snapd-autoimport.rules /lib/udev/rules.d +# snap/snapd version information +data/info /usr/lib/snapd/ + +# snap-confine stuff +etc/apparmor.d/usr.lib.snapd.snap-confine.real +lib/udev/rules.d/80-snappy-assign.rules +lib/udev/snappy-app-dev +usr/lib/snapd/snap-confine +usr/lib/snapd/snap-discard-ns +usr/lib/snapd/snap-update-ns +usr/share/man/man5/snap-confine.5 +usr/share/man/man5/snap-update-ns.5 +usr/share/man/man5/snap-discard-ns.5 +# for compatibility with ancient snap installs that wrote the shell based +# wrapper scripts instead of the modern symlinks +usr/bin/ubuntu-core-launcher + | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/snapd.maintscript ^ |
| @@ -0,0 +1,5 @@ +# keep mount point busy +# we used to ship a custom grub config that is no longer needed +rm_conffile /etc/grub.d/09_snappy 1.7.3ubuntu1 +rm_conffile /etc/ld.so.conf.d/snappy.conf 2.0.7~ +rm_conffile /etc/apparmor.d/usr.lib.snapd.snap-confine 2.23.6~ | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/snapd.manpages ^ |
| @@ -0,0 +1,1 @@ +snap.8 | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/snapd.postinst ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/snapd.postinst) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/snapd.postrm ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/snapd.postrm) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/source ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/source/format ^ |
| @@ -0,0 +1,1 @@ +3.0 (native) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/tests ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/tests/README.md ^ |
| @@ -0,0 +1,10 @@ +## Autopkgtest + +In order to run the autopkgtest suite locally you need first to generate an image: + + $ adt-buildvm-ubuntu-cloud -a amd64 -r xenial -v + +This will create a `adt-xenial-amd64-cloud.img` file, then you can run the tests from +the project's root with: + + $ adt-run --unbuilt-tree . --- qemu ./adt-xenial-amd64-cloud.img | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/tests/control ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/tests/control) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/tests/integrationtests ^ |
| (renamed from snapd-2.23.5/packaging/ubuntu-16.04/tests/integrationtests) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/tests/testconfig.json ^ |
| @@ -0,0 +1,3 @@ +{ + "FromBranch": false +} | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.04/ubuntu-snappy-cli.dirs ^ |
| @@ -0,0 +1,2 @@ +usr/lib/snapd +var/lib/snapd/snaps | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-16.10 ^ |
| +(symlink to ubuntu-16.04) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/packaging/ubuntu-17.04 ^ |
| +(symlink to ubuntu-16.04) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/partition ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/bootloader.go ^ |
| (renamed from snapd-2.23.5/partition/bootloader.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/bootloader_test.go ^ |
| (renamed from snapd-2.23.5/partition/bootloader_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/grub.go ^ |
| (renamed from snapd-2.23.5/partition/grub.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/grub_test.go ^ |
| (renamed from snapd-2.23.5/partition/grub_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/grubenv ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/grubenv/grubenv.go ^ |
| (renamed from snapd-2.23.5/partition/grubenv/grubenv.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/grubenv/grubenv_test.go ^ |
| (renamed from snapd-2.23.5/partition/grubenv/grubenv_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/uboot.go ^ |
| (renamed from snapd-2.23.5/partition/uboot.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/uboot_test.go ^ |
| (renamed from snapd-2.23.5/partition/uboot_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/utils.go ^ |
| (renamed from snapd-2.23.5/partition/utils.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/partition/utils_test.go ^ |
| (renamed from snapd-2.23.5/partition/utils_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/po ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/po/de.po ^ |
| (renamed from snapd-2.23.5/po/de.po) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/po/es.po ^ |
| (renamed from snapd-2.23.5/po/es.po) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/po/gl.po ^ |
| (renamed from snapd-2.23.5/po/gl.po) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/po/ug.po ^ |
| (renamed from snapd-2.23.5/po/ug.po) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/progress ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/progress/progress.go ^ |
| (renamed from snapd-2.23.5/progress/progress.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/progress/progress_test.go ^ |
| (renamed from snapd-2.23.5/progress/progress_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/provisioning ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/provisioning/provisioning.go ^ |
| (renamed from snapd-2.23.5/provisioning/provisioning.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/provisioning/provisioning_test.go ^ |
| (renamed from snapd-2.23.5/provisioning/provisioning_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/release ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/release/export_linux_test.go ^ |
| (renamed from snapd-2.23.5/release/export_linux_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/release/export_test.go ^ |
| (renamed from snapd-2.23.5/release/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/release/release.go ^ |
| (renamed from snapd-2.23.5/release/release.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/release/release_test.go ^ |
| (renamed from snapd-2.23.5/release/release_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/release/uname_linux.go ^ |
| (renamed from snapd-2.23.5/release/uname_linux.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/release/uname_linux_test.go ^ |
| (renamed from snapd-2.23.5/release/uname_linux_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/run-checks ^ |
| (renamed from snapd-2.23.5/run-checks) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/snap ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/broken.go ^ |
| (renamed from snapd-2.23.5/snap/broken.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/broken_test.go ^ |
| (renamed from snapd-2.23.5/snap/broken_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/container.go ^ |
| (renamed from snapd-2.23.5/snap/container.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/container_test.go ^ |
| (renamed from snapd-2.23.5/snap/container_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/errors.go ^ |
| (renamed from snapd-2.23.5/snap/errors.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/export_test.go ^ |
| (renamed from snapd-2.23.5/snap/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/gadget.go ^ |
| (renamed from snapd-2.23.5/snap/gadget.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/gadget_test.go ^ |
| (renamed from snapd-2.23.5/snap/gadget_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/hooktypes.go ^ |
| (renamed from snapd-2.23.5/snap/hooktypes.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/implicit.go ^ |
| (renamed from snapd-2.23.5/snap/implicit.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/implicit_test.go ^ |
| (renamed from snapd-2.23.5/snap/implicit_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/info.go ^ |
| (renamed from snapd-2.23.5/snap/info.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/info_snap_yaml.go ^ |
| (renamed from snapd-2.23.5/snap/info_snap_yaml.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/info_snap_yaml_test.go ^ |
| (renamed from snapd-2.23.5/snap/info_snap_yaml_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/info_test.go ^ |
| (renamed from snapd-2.23.5/snap/info_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/revision.go ^ |
| (renamed from snapd-2.23.5/snap/revision.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/revision_test.go ^ |
| (renamed from snapd-2.23.5/snap/revision_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/seed_yaml.go ^ |
| (renamed from snapd-2.23.5/snap/seed_yaml.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/seed_yaml_test.go ^ |
| (renamed from snapd-2.23.5/snap/seed_yaml_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snapdir ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snapdir/snapdir.go ^ |
| (renamed from snapd-2.23.5/snap/snapdir/snapdir.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snapdir/snapdir_test.go ^ |
| (renamed from snapd-2.23.5/snap/snapdir/snapdir_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snapenv ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snapenv/snapenv.go ^ |
| (renamed from snapd-2.23.5/snap/snapenv/snapenv.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snapenv/snapenv_test.go ^ |
| (renamed from snapd-2.23.5/snap/snapenv/snapenv_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snaptest ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snaptest/build.go ^ |
| (renamed from snapd-2.23.5/snap/snaptest/build.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snaptest/build_test.go ^ |
| (renamed from snapd-2.23.5/snap/snaptest/build_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snaptest/export_test.go ^ |
| (renamed from snapd-2.23.5/snap/snaptest/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snaptest/snaptest.go ^ |
| (renamed from snapd-2.23.5/snap/snaptest/snaptest.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/snaptest/snaptest_test.go ^ |
| (renamed from snapd-2.23.5/snap/snaptest/snaptest_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/squashfs ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/squashfs/squashfs.go ^ |
| (renamed from snapd-2.23.5/snap/squashfs/squashfs.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/squashfs/squashfs_test.go ^ |
| (renamed from snapd-2.23.5/snap/squashfs/squashfs_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/types.go ^ |
| (renamed from snapd-2.23.5/snap/types.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/types_test.go ^ |
| (renamed from snapd-2.23.5/snap/types_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/validate.go ^ |
| (renamed from snapd-2.23.5/snap/validate.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/snap/validate_test.go ^ |
| (renamed from snapd-2.23.5/snap/validate_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/spread.yaml ^ |
| (renamed from snapd-2.23.5/spread.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/store ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/auth.go ^ |
| (renamed from snapd-2.23.5/store/auth.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/auth_test.go ^ |
| (renamed from snapd-2.23.5/store/auth_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/details.go ^ |
| (renamed from snapd-2.23.5/store/details.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/errors.go ^ |
| (renamed from snapd-2.23.5/store/errors.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/export_test.go ^ |
| (renamed from snapd-2.23.5/store/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/retry.go ^ |
| (renamed from snapd-2.23.5/store/retry.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/store.go ^ |
| (renamed from snapd-2.23.5/store/store.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/store_test.go ^ |
| (renamed from snapd-2.23.5/store/store_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/userinfo.go ^ |
| (renamed from snapd-2.23.5/store/userinfo.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/store/userinfo_test.go ^ |
| (renamed from snapd-2.23.5/store/userinfo_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/strutil ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/strutil/map.go ^ |
| (renamed from snapd-2.23.5/strutil/map.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/strutil/map_test.go ^ |
| (renamed from snapd-2.23.5/strutil/map_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/strutil/strutil.go ^ |
| (renamed from snapd-2.23.5/strutil/strutil.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/strutil/strutil_test.go ^ |
| (renamed from snapd-2.23.5/strutil/strutil_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/strutil/version.go ^ |
| (renamed from snapd-2.23.5/strutil/version.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/strutil/version_test.go ^ |
| (renamed from snapd-2.23.5/strutil/version_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/systemd ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/systemd/escape.go ^ |
| (renamed from snapd-2.23.5/systemd/escape.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/systemd/escape_test.go ^ |
| (renamed from snapd-2.23.5/systemd/escape_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/systemd/export_test.go ^ |
| (renamed from snapd-2.23.5/systemd/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/systemd/systemd.go ^ |
| (renamed from snapd-2.23.5/systemd/systemd.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/systemd/systemd_test.go ^ |
| (renamed from snapd-2.23.5/systemd/systemd_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/external-backend.md ^ |
| (renamed from snapd-2.23.5/tests/external-backend.md) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/apt.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/apt.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/auto-import.assert ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/auto-import.assert) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/developer1-my-classic-w-gadget.model ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/developer1-my-classic-w-gadget.model) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/developer1-my-classic.model ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/developer1-my-classic.model) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/developer1-pc.model ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/developer1-pc.model) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/developer1.account ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/developer1.account) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/developer1.account-key ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/developer1.account-key) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/nested-amd64.model ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/nested-amd64.model) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/nested-i386.model ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/nested-i386.model) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/pc-production.model ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/pc-production.model) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/pc-staging.model ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/pc-staging.model) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/pi2.model ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/pi2.model) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/assertions/testrootorg-store.account-key ^ |
| (renamed from snapd-2.23.5/tests/lib/assertions/testrootorg-store.account-key) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/boot.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/boot.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/changes.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/changes.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/external ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/external/prepare-ssh.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/external/prepare-ssh.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakedevicesvc ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakedevicesvc/main.go ^ |
| (renamed from snapd-2.23.5/tests/lib/fakedevicesvc/main.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore/cmd ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore/cmd/fakestore ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore/cmd/fakestore/main.go ^ |
| (renamed from snapd-2.23.5/tests/lib/fakestore/cmd/fakestore/main.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore/refresh ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore/refresh/refresh.go ^ |
| (renamed from snapd-2.23.5/tests/lib/fakestore/refresh/refresh.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore/store ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore/store/store.go ^ |
| (renamed from snapd-2.23.5/tests/lib/fakestore/store/store.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/fakestore/store/store_test.go ^ |
| (renamed from snapd-2.23.5/tests/lib/fakestore/store/store_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/mkpinentry.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/mkpinentry.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/names.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/names.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/network.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/network.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/os-release.16 ^ |
| (renamed from snapd-2.23.5/tests/lib/os-release.16) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/prepare-project.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/prepare-project.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/prepare.sh ^ |
| @@ -0,0 +1,361 @@ +#!/bin/bash + +set -eux + +. $TESTSLIB/apt.sh +. $TESTSLIB/snaps.sh + +update_core_snap_for_classic_reexec() { + # it is possible to disable this to test that snapd (the deb) works + # fine with whatever is in the core snap + if [ "$MODIFY_CORE_SNAP_FOR_REEXEC" != "1" ]; then + echo "Not modifying the core snap as requested via MODIFY_CORE_SNAP_FOR_REEXEC" + return + fi + + # We want to use the in-tree snap/snapd/snap-exec/snapctl, because + # we re-exec by default. + # To accomplish that, we'll just unpack the core we just grabbed, + # shove the new snap-exec and snapctl in there, and repack it. + + # First of all, unmount the core + core="$(readlink -f /snap/core/current || readlink -f /snap/ubuntu-core/current)" + snap="$(mount | grep " $core" | awk '{print $1}')" + umount --verbose "$core" + + # Now unpack the core, inject the new snap-exec/snapctl into it + unsquashfs "$snap" + cp /usr/lib/snapd/snap-exec squashfs-root/usr/lib/snapd/ + cp /usr/bin/snapctl squashfs-root/usr/bin/ + # also inject new version of snap-confine and snap-scard-ns + cp /usr/lib/snapd/snap-discard-ns squashfs-root/usr/lib/snapd/ + cp /usr/lib/snapd/snap-confine squashfs-root/usr/lib/snapd/ + # also add snap/snapd because we re-exec by default and want to test + # this version + cp /usr/lib/snapd/snapd squashfs-root/usr/lib/snapd/ + cp /usr/lib/snapd/info squashfs-root/usr/lib/snapd/ + cp /usr/bin/snap squashfs-root/usr/bin/snap + # repack, cheating to speed things up (4sec vs 1.5min) + mv "$snap" "${snap}.orig" + mksnap_fast "squashfs-root" "$snap" + rm -rf squashfs-root + + # Now mount the new core snap + mount "$snap" "$core" + + # Make sure we're running with the correct copied bits + for p in /usr/lib/snapd/snap-exec /usr/lib/snapd/snap-confine /usr/lib/snapd/snap-discard-ns /usr/bin/snapctl /usr/lib/snapd/snapd /usr/bin/snap; do + if ! cmp ${p} ${core}${p}; then + echo "$p in tree and $p in core snap are unexpectedly not the same" + exit 1 + fi + done +} + +prepare_each_classic() { + mkdir -p /etc/systemd/system/snapd.service.d + if [ -z "${SNAP_REEXEC:-}" ]; then + rm -f /etc/systemd/system/snapd.service.d/reexec.conf + else + cat <<EOF > /etc/systemd/system/snapd.service.d/reexec.conf +[Service] +Environment=SNAP_REEXEC=$SNAP_REEXEC +EOF + fi + if [ ! -f /etc/systemd/system/snapd.service.d/local.conf ]; then + echo "/etc/systemd/system/snapd.service.d/local.conf vanished!" + exit 1 + fi +} + +prepare_classic() { + apt_install_local ${GOPATH}/snapd_*.deb + if snap --version |MATCH unknown; then + echo "Package build incorrect, 'snap --version' mentions 'unknown'" + snap --version + apt-cache policy snapd + exit 1 + fi + if /usr/lib/snapd/snap-confine --version | MATCH unknown; then + echo "Package build incorrect, 'snap-confine --version' mentions 'unknown'" + /usr/lib/snapd/snap-confine --version + apt-cache policy snap-confine + exit 1 + fi + + mkdir -p /etc/systemd/system/snapd.service.d + cat <<EOF > /etc/systemd/system/snapd.service.d/local.conf +[Unit] +StartLimitInterval=0 +[Service] +Environment=SNAPD_DEBUG_HTTP=7 SNAPD_DEBUG=1 SNAPPY_TESTING=1 SNAPD_CONFIGURE_HOOK_TIMEOUT=30s +EOF + mkdir -p /etc/systemd/system/snapd.socket.d + cat <<EOF > /etc/systemd/system/snapd.socket.d/local.conf +[Unit] +StartLimitInterval=0 +EOF + + if [ "$REMOTE_STORE" = staging ]; then + . $TESTSLIB/store.sh + setup_staging_store + fi + + # Snapshot the state including core. + if [ ! -f $SPREAD_PATH/snapd-state.tar.gz ]; then + ! snap list | grep core || exit 1 + # use parameterized core channel (defaults to edge) instead + # of a fixed one and close to stable in order to detect defects + # earlier + snap install --${CORE_CHANNEL} core + snap list | grep core + + # ensure no auto-refresh happens during the tests + if [ -e /snap/core/current/meta/hooks/configure ]; then + snap set core refresh.disabled=true + fi + + echo "Ensure that the grub-editenv list output is empty on classic" + output=$(grub-editenv list) + if [ -n "$output" ]; then + echo "Expected empty grub environment, got:" + echo "$output" + exit 1 + fi + + systemctl stop snapd.service snapd.socket + + update_core_snap_for_classic_reexec + + systemctl daemon-reload + mounts="$(systemctl list-unit-files --full | grep '^snap[-.].*\.mount' | cut -f1 -d ' ')" + services="$(systemctl list-unit-files --full | grep '^snap[-.].*\.service' | cut -f1 -d ' ')" + for unit in $services $mounts; do + systemctl stop $unit + done + tar czf $SPREAD_PATH/snapd-state.tar.gz /var/lib/snapd /snap /etc/systemd/system/snap-*core*.mount + systemctl daemon-reload # Workaround for http://paste.ubuntu.com/17735820/ + for unit in $mounts $services; do + systemctl start $unit + done + systemctl start snapd.socket + fi +} + +setup_reflash_magic() { + # install the stuff we need + apt-get install -y kpartx busybox-static + apt_install_local ${GOPATH}/snapd_*.deb + apt-get clean + + snap install --${CORE_CHANNEL} core + + # install ubuntu-image + snap install --devmode --edge ubuntu-image + + # needs to be under /home because ubuntu-device-flash + # uses snap-confine and that will hide parts of the hostfs + IMAGE_HOME=/home/image + mkdir -p $IMAGE_HOME + + # modify the core snap so that the current root-pw works there + # for spread to do the first login + UNPACKD="/tmp/core-snap" + unsquashfs -d $UNPACKD /var/lib/snapd/snaps/core_*.snap + + # FIXME: netplan workaround + mkdir -p $UNPACKD/etc/netplan + + # set root pw by concating root line from host and rest from core + want_pw="$(grep ^root /etc/shadow)" + echo "$want_pw" > /tmp/new-shadow + tail -n +2 /etc/shadow >> /tmp/new-shadow + cp -v /tmp/new-shadow $UNPACKD/etc/shadow + cp -v /etc/passwd $UNPACKD/etc/passwd + + # ensure spread -reuse works in the core image as well + if [ -e /.spread.yaml ]; then + cp -av /.spread.yaml $UNPACKD + fi + + # we need the test user in the image + # see the comment in spread.yaml about 12345 + sed -i "s/^test.*$//" $UNPACKD/etc/{shadow,passwd} + chroot $UNPACKD addgroup --quiet --gid 12345 test + chroot $UNPACKD adduser --quiet --no-create-home --uid 12345 --gid 12345 --disabled-password --gecos '' test + echo 'test ALL=(ALL) NOPASSWD:ALL' >> $UNPACKD/etc/sudoers.d/99-test-user + + echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' >> $UNPACKD/etc/sudoers.d/99-ubuntu-user + + # modify sshd so that we can connect as root + sed -i 's/\(PermitRootLogin\|PasswordAuthentication\)\>.*/\1 yes/' $UNPACKD/etc/ssh/sshd_config + + # FIXME: install would be better but we don't have dpkg on + # the image + # unpack our freshly build snapd into the new core snap + dpkg-deb -x ${SPREAD_PATH}/../snapd_*.deb $UNPACKD + + # add gpio and iio slots + cat >> $UNPACKD/meta/snap.yaml <<-EOF | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/quiet.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/quiet.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/reset.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/reset.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snapbuild ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snapbuild/main.go ^ |
| (renamed from snapd-2.23.5/tests/lib/snapbuild/main.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps.sh ^ |
| @@ -0,0 +1,30 @@ +#!/bin/sh + +install_local() { + local SNAP_NAME="$1" + shift; + local SNAP_FILE="$TESTSLIB/snaps/${SNAP_NAME}/${SNAP_NAME}_1.0_all.snap" + local SNAP_DIR=$(dirname "$SNAP_FILE") + if [ ! -f "$SNAP_FILE" ]; then + snapbuild "$SNAP_DIR" "$SNAP_DIR" + fi + snap install --dangerous "$@" "$SNAP_FILE" +} + +install_local_devmode() { + install_local "$1" --devmode +} + +# mksnap_fast creates a snap using a faster compress algorithm (gzip) +# than the regular snaps (which are lzma) +mksnap_fast() { + dir="$1" + snap="$2" + + if [[ "$SPREAD_SYSTEM" == ubuntu-14.04-* ]]; then + # trusty does not support -Xcompression-level 1 + mksquashfs "$dir" "$snap" -comp gzip + else + mksquashfs "$dir" "$snap" -comp gzip -Xcompression-level 1 + fi +} | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/account-control-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/account-control-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/account-control-consumer/bin/chpasswd ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/account-control-consumer/bin/chpasswd) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/account-control-consumer/bin/deluser ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/account-control-consumer/bin/deluser) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/account-control-consumer/bin/useradd ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/account-control-consumer/bin/useradd) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/account-control-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/account-control-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/account-control-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/aliases ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/aliases/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/aliases/bin/cmd1 ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/aliases/bin/cmd1) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/aliases/bin/cmd2 ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/aliases/bin/cmd2) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/aliases/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/aliases/meta/icon.png ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/meta/icon.png) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/aliases/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/aliases/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-desktop ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-desktop/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-desktop/bin/echo ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-desktop/bin/echo) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-desktop/meta ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-desktop/meta/gui ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-desktop/meta/gui/echo.desktop ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-desktop/meta/gui/echo.desktop) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-desktop/meta/gui/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-desktop/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-desktop/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-hooks ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-hooks/meta ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-hooks/meta/hooks ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-hooks/meta/hooks/configure ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-hooks/meta/hooks/configure) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-hooks/meta/hooks/invalid-hook ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-hooks/meta/hooks/invalid-hook) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-hooks/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-hooks/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-hooks/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-consumer/meta/hooks ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-consumer/meta/hooks/connect-plug-foo ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-consumer/meta/hooks/connect-plug-foo) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-consumer/meta/hooks/prepare-plug-foo ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-consumer/meta/hooks/prepare-plug-foo) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-consumer/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-producer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-producer/meta ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-producer/meta/hooks ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-producer/meta/hooks/connect-slot-bar ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-producer/meta/hooks/connect-slot-bar) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-producer/meta/hooks/prepare-slot-bar ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-producer/meta/hooks/prepare-slot-bar) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-producer/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic-iface-hooks-producer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic-iface-hooks-producer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic/meta ^ |
| +(directory) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/basic/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/basic/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/classic-gadget ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/classic-gadget/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/classic-gadget/meta/gadget.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/classic-gadget/meta/gadget.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/classic-gadget/meta/hooks ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/classic-gadget/meta/hooks/prepare-device ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-custom-device-reg/prepare-device) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/classic-gadget/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/classic-gadget/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/classic-gadget/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/data-writer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/data-writer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/data-writer/bin/write-data ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/data-writer/bin/write-data) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/data-writer/meta ^ |
| +(directory) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/data-writer/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/data-writer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/data-writer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/failing-config-hooks ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/failing-config-hooks/meta ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/failing-config-hooks/meta/hooks ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/failing-config-hooks/meta/hooks/configure ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/failing-config-hooks/meta/hooks/configure) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/failing-config-hooks/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/failing-config-hooks/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/failing-config-hooks/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/firewall-control-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/firewall-control-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/firewall-control-consumer/bin/consumer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/firewall-control-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/firewall-control-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/firewall-control-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/firewall-control-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/gpio-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/gpio-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/gpio-consumer/bin/read ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/gpio-consumer/bin/read) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/gpio-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/gpio-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/gpio-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/hardware-observe-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/hardware-observe-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/hardware-observe-consumer/bin/consumer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/hardware-observe-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/hardware-observe-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/hardware-observe-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/hardware-observe-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/home-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/home-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/home-consumer/bin/reader ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/home-consumer/bin/reader) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/home-consumer/bin/writer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/home-consumer/bin/writer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/home-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/home-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/home-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/iio-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/iio-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/iio-consumer/bin/read ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/iio-consumer/bin/read) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/iio-consumer/bin/write ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/iio-consumer/bin/write) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/iio-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/iio-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/iio-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/locale-control-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/locale-control-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/locale-control-consumer/bin/get ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/locale-control-consumer/bin/get) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/locale-control-consumer/bin/set ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/locale-control-consumer/bin/set) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/locale-control-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/locale-control-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/locale-control-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/log-observe-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/log-observe-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/log-observe-consumer/bin/cmd ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/cmd) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/log-observe-consumer/bin/consumer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/log-observe-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/log-observe-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/log-observe-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/log-observe-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/modem-manager-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/modem-manager-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/modem-manager-consumer/bin/consumer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/modem-manager-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/modem-manager-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/modem-manager-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/modem-manager-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/mount-observe-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/mount-observe-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/mount-observe-consumer/bin/consumer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/mount-observe-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/mount-observe-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/mount-observe-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/mount-observe-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-bind-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-bind-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-bind-consumer/bin/consumer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/network-bind-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-bind-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-bind-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/network-bind-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-consumer/bin/consumer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/network-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/network-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-control-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-control-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-control-consumer/bin/add-arp-entry ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/network-control-consumer/bin/add-arp-entry) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-control-consumer/bin/query ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/network-observe-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-control-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-control-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/network-control-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-observe-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-observe-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-observe-consumer/bin/consumer ^ |
| @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 + +import subprocess +import sys + +def run(): + subprocess.check_call("netstat -lnt", shell=True) + +if __name__ == '__main__': + sys.exit(run()) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-observe-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/network-observe-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/network-observe-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/process-control-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/process-control-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/process-control-consumer/bin/signal ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/process-control-consumer/bin/signal) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/process-control-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/process-control-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/process-control-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks-v2 ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks-v2/meta ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks-v2/meta/hooks ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks-v2/meta/hooks/configure ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/snapctl-hooks-v2/meta/hooks/configure) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks-v2/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks-v2/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/snapctl-hooks-v2/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks/meta ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks/meta/hooks ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks/meta/hooks/configure ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/snapctl-hooks/meta/hooks/configure) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/snapctl-hooks/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/snapctl-hooks/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/system-observe-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/system-observe-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/system-observe-consumer/bin/consumer ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/system-observe-consumer/bin/consumer) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/system-observe-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/system-observe-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/system-observe-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-auto-aliases ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-auto-aliases/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-auto-aliases/bin/wellknown1 ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-auto-aliases/bin/wellknown1) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-auto-aliases/bin/wellknown2 ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-auto-aliases/bin/wellknown2) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-auto-aliases/meta ^ |
| +(directory) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-auto-aliases/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-auto-aliases/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-auto-aliases/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-classic-confinement ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-classic-confinement/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-classic-confinement/bin/classic-confinement ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-classic-confinement/bin/classic-confinement) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-classic-confinement/meta ^ |
| +(directory) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-classic-confinement/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-classic-confinement/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-classic-confinement/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug-empty-content-attr ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/bin/content-plug ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/bin/content-plug) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/import ^ |
| +(directory) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/import/.placeholder ^ | |
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug-empty-content-attr/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug/bin/content-plug ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug/bin/content-plug) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug/import ^ |
| +(directory) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug/import/.placeholder ^ | |
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-plug/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-content-plug/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-slot ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-slot-empty-content-attr ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-slot-empty-content-attr/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-slot-empty-content-attr/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-content-slot-empty-content-attr/meta/snap.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-slot-empty-content-attr/shared-content ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-content-slot/shared-content) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-slot/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-slot/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-content-slot/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-content-slot/shared-content ^ |
| @@ -0,0 +1,3 @@ +Some shared content + +Is here! | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-control-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-control-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-control-consumer/bin/install ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-control-consumer/bin/install) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-control-consumer/bin/list ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-control-consumer/bin/list) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-control-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-control-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-control-consumer/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-cups-control-consumer ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-cups-control-consumer/snapcraft.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-cups-control-consumer/snapcraft.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-devmode ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-devmode/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-devmode/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-devmode/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-fuse-consumer ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-fuse-consumer/Makefile ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-fuse-consumer/Makefile) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-fuse-consumer/snapcraft.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-fuse-consumer/snapcraft.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-go-webserver ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-go-webserver/main.go ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-go-webserver/main.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-go-webserver/snapcraft.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-go-webserver/snapcraft.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-libvirt-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-libvirt-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-libvirt-consumer/bin/machine-down ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-libvirt-consumer/bin/machine-down) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-libvirt-consumer/bin/machine-up ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-libvirt-consumer/bin/machine-up) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-libvirt-consumer/snapcraft.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-libvirt-consumer/snapcraft.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-libvirt-consumer/vm ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-libvirt-consumer/vm/ping-unikernel.xml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-libvirt-consumer/vm/ping-unikernel.xml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-private ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-private/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-private/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-private/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-python-webserver ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-python-webserver/index.html ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-python-webserver/index.html) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-python-webserver/server.py ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-python-webserver/server.py) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-python-webserver/snapcraft.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-python-webserver/snapcraft.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v1 ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v1/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v1/bin/service ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service-v1-good/bin/good) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v1/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v1/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v1/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v2 ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v2/bin ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v2/bin/service ^ |
| @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "service v1" | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v2/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-try-v2/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service-try-v2/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v1-good ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v1-good/bin ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v1-good/bin/good ^ |
| @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "service v1" | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v1-good/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v1-good/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service-v1-good/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v2-bad ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v2-bad/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v2-bad/bin/bad ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service-v2-bad/bin/bad) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v2-bad/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service-v2-bad/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service-v2-bad/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service/bin/reload ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service/bin/reload) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service/bin/start ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service/bin/start) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-service/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-service/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/block ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/block) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/cat ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/cat) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/cmd ^ |
| @@ -0,0 +1,6 @@ +#!/bin/sh + +command="$1" +shift + +"$command" "$@" | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/echo ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/echo) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/env ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/env) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/fail ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/fail) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/head ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/head) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/sh ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/bin/success ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/bin/success) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/meta ^ |
| +(directory) | ||
| Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/meta/icon.png ^ | |
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-tools/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-tools/meta/snap.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-upower-observe-consumer ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/test-snapd-upower-observe-consumer/snapcraft.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/test-snapd-upower-observe-consumer/snapcraft.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/time-control-consumer ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/time-control-consumer/bin ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/time-control-consumer/bin/read ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/time-control-consumer/bin/read) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/time-control-consumer/bin/write ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/time-control-consumer/bin/write) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/time-control-consumer/meta ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/snaps/time-control-consumer/meta/snap.yaml ^ |
| (renamed from snapd-2.23.5/tests/lib/snaps/time-control-consumer/meta/snap.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/store.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/store.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/lib/systemd.sh ^ |
| (renamed from snapd-2.23.5/tests/lib/systemd.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/abort ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/abort/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/abort/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ack ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ack/alice.account ^ |
| (renamed from snapd-2.23.5/tests/main/ack/alice.account) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ack/alice.account-key ^ |
| (renamed from snapd-2.23.5/tests/main/ack/alice.account-key) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ack/bob.assertions ^ |
| (renamed from snapd-2.23.5/tests/main/ack/bob.assertions) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ack/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ack/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/alias ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/alias/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/alias/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/auth-errors ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/auth-errors/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/auth-errors/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/auto-aliases ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/auto-aliases/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/auto-aliases/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/auto-refresh ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/auto-refresh/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/auto-refresh/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/change-errors ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/change-errors/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/change-errors/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/chattr ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/chattr/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/chattr/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/chattr/toggle.go ^ |
| (renamed from snapd-2.23.5/tests/main/chattr/toggle.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-confinement ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-confinement/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/classic-confinement/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-custom-device-reg ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-custom-device-reg/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/classic-custom-device-reg/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-firstboot ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-firstboot/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/classic-firstboot/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-ubuntu-core-transition ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-ubuntu-core-transition-auth ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-ubuntu-core-transition-auth/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/classic-ubuntu-core-transition-auth/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-ubuntu-core-transition-two-cores ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-ubuntu-core-transition-two-cores/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/classic-ubuntu-core-transition-two-cores/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/classic-ubuntu-core-transition/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/classic-ubuntu-core-transition/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/cmdline ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/cmdline/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/cmdline/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/abort.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/abort.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/ack.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/ack.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/buy.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/buy.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/change.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/change.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/delete-key.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/delete-key.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/disable.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/disable.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/download.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/download.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/enable.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/enable.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/export-key.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/export-key.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/get.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/get.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/info.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/info.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/install.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/install.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/key.exp0 ^ |
| (renamed from snapd-2.23.5/tests/main/completion/key.exp0) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/lib.exp0 ^ |
| (renamed from snapd-2.23.5/tests/main/completion/lib.exp0) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/list.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/list.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/refresh.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/refresh.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/remove.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/remove.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/revert.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/revert.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/set.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/set.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/sign-build.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/sign-build.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/sign.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/sign.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/completion/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/toplevel.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/toplevel.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/try.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/try.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/completion/watch.exp ^ |
| (renamed from snapd-2.23.5/tests/main/completion/watch.exp) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/confinement-classic ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/confinement-classic/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/confinement-classic/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/confinement-classic/test-snapd-hello-classic ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/confinement-classic/test-snapd-hello-classic/Makefile ^ |
| (renamed from snapd-2.23.5/tests/main/confinement-classic/test-snapd-hello-classic/Makefile) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/confinement-classic/test-snapd-hello-classic/test-snapd-hello-classic.c ^ |
| (renamed from snapd-2.23.5/tests/main/confinement-classic/test-snapd-hello-classic/test-snapd-hello-classic.c) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/create-key ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/create-key/passphrase_mismatch.exp ^ |
| (renamed from snapd-2.23.5/tests/main/create-key/passphrase_mismatch.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/create-key/successful_default.exp ^ |
| (renamed from snapd-2.23.5/tests/main/create-key/successful_default.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/create-key/successful_non_default.exp ^ |
| (renamed from snapd-2.23.5/tests/main/create-key/successful_non_default.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/create-key/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/create-key/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/create-user ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/create-user/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/create-user/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/docker ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/docker/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/docker/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/enable-disable ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/enable-disable-units-gpio ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/enable-disable-units-gpio/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/enable-disable-units-gpio/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/enable-disable/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/enable-disable/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/failover ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/failover/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/failover/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/find-private ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/find-private/successful_login.exp ^ |
| (renamed from snapd-2.23.5/tests/main/find-private/successful_login.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/find-private/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/find-private/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/firstboot ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/firstboot/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/firstboot/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/help ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/help/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/help/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/i18n ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/i18n/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/i18n/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-errors ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-errors/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/install-errors/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-remove-multi ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-remove-multi/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/install-remove-multi/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-sideload ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-sideload/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/install-sideload/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-store ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-store-laaaarge ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-store-laaaarge/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/install-store-laaaarge/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/install-store/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/install-store/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-account-control ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-account-control/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-account-control/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-bluez ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-bluez/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-bluez/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-cli ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-cli/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-cli/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-content ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-content-empty-content-attr ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-content-empty-content-attr/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-content-empty-content-attr/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-content/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-content/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-cups-control ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-cups-control/task.yaml ^ |
| @@ -0,0 +1,70 @@ +summary: Ensure that the cups interface works. + +systems: [-ubuntu-core-16-64, -ubuntu-core-16-arm-64, -ubuntu-core-16-arm-32] + +details: | + The cups-control interface allows a snap to access the locale configuration. + + A snap which defines the cups-control plug must be shown in the interfaces list. + The plug must not be autoconnected on install and, as usual, must be able to be + reconnected. + + A snap declaring a plug on this interface must be able to talk to the cups daemon. + The test snap used pulls the lpr functionality and installs a pdf printer. In order + to actually connect to the socket it needs to declare a plug on the network interface. + The test checks for the existence of a pdf file generated by the lpr command in the + snap. + +environment: + TEST_FILE: /var/snap/test-snapd-cups-control-consumer/current/test_file.txt + +prepare: | + echo "Given a snap declaring a cups plug is installed" + snap install test-snapd-cups-control-consumer + + echo "And the pdf printer is available" + if [[ "$SPREAD_SYSTEM" == ubuntu-14.04-* ]]; then + apt-get install -y --no-install-recommends cups-pdf + else + apt-get install -y --no-install-recommends printer-driver-cups-pdf + fi + +restore: | + if [[ "$SPREAD_SYSTEM" == ubuntu-14.04-* ]]; then + apt-get purge -y --auto-remove cups-pdf + else + apt-get purge -y --auto-remove printer-driver-cups-pdf + fi + rm -rf $HOME/PDF $TEST_FILE print.error + +execute: | + CONNECTED_PATTERN=":cups-control +test-snapd-cups-control-consumer" + DISCONNECTED_PATTERN="(?s).*?\n- +test-snapd-cups-control-consumer:cups-control" + . "$TESTSLIB/names.sh" + + echo "Then it is not shown as connected" + snap interfaces | grep -Pzq "$DISCONNECTED_PATTERN" + + echo "====================================" + + echo "When the plug is connected" + snap connect test-snapd-cups-control-consumer:cups-control ${core_name}:cups-control + snap interfaces | grep -Pzq "$CONNECTED_PATTERN" + + echo "Then the snap command is able to print files" + echo "Hello World" > $TEST_FILE + test-snapd-cups-control-consumer.lpr $TEST_FILE + while ! test -e $HOME/PDF/test_file*.pdf; do sleep 1; done + + echo "====================================" + + echo "When the plug is disconnected" + snap disconnect test-snapd-cups-control-consumer:cups-control ${core_name}:cups-control + snap interfaces | grep -Pzq "$DISCONNECTED_PATTERN" + + echo "Then the snap command is not able to print files" + if test-snapd-cups-control-consumer.lpr $TEST_FILE 2>print.error; then + echo "Expected error with plug disconnected" + exit 1 + fi + grep -q "scheduler not responding" print.error | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-firewall-control ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-firewall-control/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-firewall-control/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-fuse_support ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-fuse_support/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-fuse_support/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-hardware-observe ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-hardware-observe/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-hardware-observe/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-home ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-home/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-home/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-hooks ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-hooks/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-hooks/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-iio ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-iio/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-iio/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-libvirt ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-libvirt/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-libvirt/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-locale-control ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-locale-control/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-locale-control/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-log-observe ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-log-observe/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-log-observe/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-mount-observe ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-mount-observe/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-mount-observe/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network-bind ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network-bind/task.yaml ^ |
| @@ -0,0 +1,74 @@ +summary: Ensure that the network-bind interface works + +details: | + The network-bind interface allows a daemon to access the network as a server. + + A snap which defines the network-bind plug must be shown in the interfaces list. + The plug must be autoconnected on install and, as usual, must be able to be + reconnected. + + A snap declaring a plug on this interface must be accessible by a network client. + +environment: + SNAP_NAME: network-bind-consumer + SNAP_FILE: ${SNAP_NAME}_1.0_all.snap + PORT: 8081 + REQUEST_FILE: ./request.txt + +prepare: | + echo "Given a snap declaring the network-bind plug is installed" + snapbuild $TESTSLIB/snaps/$SNAP_NAME . + snap install --dangerous $SNAP_FILE + + echo "Given the snap's service is listening" + while ! netstat -lnt | grep -Pq "tcp.*?:$PORT +.*?LISTEN\n*"; do sleep 0.5; done + + echo "Given we store a basic HTTP request" + cat > $REQUEST_FILE <<EOF + GET / HTTP/1.0 + + EOF + +restore: | + rm -f $SNAP_FILE $REQUEST_FILE + +execute: | + . "$TESTSLIB/names.sh" + CONNECTED_PATTERN="(?s)Slot +Plug\n\ + .*?\n\ + :network-bind +core,$SNAP_NAME" + DISCONNECTED_PATTERN="(?s)Slot +Plug\n\ + .*?\n\ + - +$SNAP_NAME:network-bind" + + echo "Then the snap is listed as connected" + snap interfaces | grep -Pzq "$CONNECTED_PATTERN" + + echo "============================================" + + echo "When the plug is disconnected" + snap disconnect $SNAP_NAME:network-bind ${core_name}:network-bind + snap interfaces | grep -Pzq "$DISCONNECTED_PATTERN" + + echo "Then the plug can be connected again" + snap connect $SNAP_NAME:network-bind ${core_name}:network-bind + snap interfaces | grep -Pzq "$CONNECTED_PATTERN" + + echo "============================================" + + echo "When the plug is connected" + snap connect $SNAP_NAME:network-bind ${core_name}:network-bind + snap interfaces | grep -Pzq "$CONNECTED_PATTERN" + + echo "Then the service is accessible by a client" + nc -w 2 -q 2 localhost "$PORT" < $REQUEST_FILE | grep -Pqz "ok\n" + + echo "============================================" + + echo "When the plug is disconnected" + snap disconnect $SNAP_NAME:network-bind ${core_name}:network-bind + snap interfaces | grep -Pzq "$DISCONNECTED_PATTERN" + + echo "Then the service is not accessible by a client" + response=$(nc -w 2 -q 2 localhost "$PORT" < $REQUEST_FILE) + [ "$response" = "" ] | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network-control ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network-control-ip-netns ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network-control-ip-netns/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-network-control-ip-netns/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network-control/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-network-control/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network-observe ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network-observe/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-network-observe/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-network/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-network/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-process-control ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-process-control/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-process-control/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-snapd-control ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-snapd-control/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-snapd-control/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-system-observe ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-system-observe/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-system-observe/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-time-control ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-time-control/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-time-control/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-udev ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-udev/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-udev/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-upower-observe ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/interfaces-upower-observe/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/interfaces-upower-observe/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/known ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/known-remote ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/known-remote/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/known-remote/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/known/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/known/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/listing ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/listing/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/listing/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/local-install-w-metadata ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/local-install-w-metadata/digest.go ^ |
| (renamed from snapd-2.23.5/tests/main/local-install-w-metadata/digest.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/local-install-w-metadata/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/local-install-w-metadata/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/login ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/login/missing_email_error.exp ^ |
| (renamed from snapd-2.23.5/tests/main/login/missing_email_error.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/login/successful_login.exp ^ |
| (renamed from snapd-2.23.5/tests/main/login/successful_login.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/login/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/login/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/login/unsuccessful_login.exp ^ |
| (renamed from snapd-2.23.5/tests/main/login/unsuccessful_login.exp) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/manpages ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/manpages/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/manpages/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/op-install-failed-undone ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/op-install-failed-undone/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/op-install-failed-undone/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/op-remove ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/op-remove-retry ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/op-remove-retry/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/op-remove-retry/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/op-remove/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/op-remove/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/postrm-purge ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/postrm-purge/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/postrm-purge/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/prepare-image-grub ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/prepare-image-grub/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/prepare-image-grub/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/prepare-image-uboot ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/prepare-image-uboot/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/prepare-image-uboot/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-all ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-all-undo ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-all-undo/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/refresh-all-undo/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-all/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/refresh-all/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-core-with-failing-configure-hook ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-core-with-failing-configure-hook/task.yaml ^ |
| @@ -0,0 +1,37 @@ +summary: Check refresh with a broken configure hook on core still works + +# FIXME: for now only +systems: [-ubuntu-core-*] + +environment: + BROKEN_CORE_SNAP: core_broken.snap + +restore: + rm -rf squashfs-root + rm -f $BROKEN_CORE_SNAP + +execute: | + snap list | awk "/^core / {print(\$3)}" > prevBoot + + echo "Breaking the configure hook of the core snap" + unsquashfs /var/lib/snapd/snaps/core_$(cat prevBoot).snap + printf '#!/bin/sh\necho somethingbroken\nfalse\n' > squashfs-root/meta/hooks/configure + chmod 755 squashfs-root/meta/hooks/configure + + . $TESTSLIB/snaps.sh + mksnap_fast "squashfs-root" "$BROKEN_CORE_SNAP" + rm -rf squshfs-root + + echo "Installing a new core which will trigger running the configure hook" + snap install --dangerous $BROKEN_CORE_SNAP + + echo "Checking changes" + . $TESTSLIB/changes.sh + snap changes + chg_id=$(change_id "Install \"core\" snap from file \"$BROKEN_CORE_SNAP\"" Done) + + echo "Verify the snap change" + snap change $chg_id | MATCH ".*ERROR ignoring failure in hook \"configure\".*" + snap change $chg_id | MATCH ".*somethingbroken.*" + + journalctl -u snapd | MATCH "Reported hook failure from \"configure\" for snap \"core\" as.*" | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-core-with-hanging-configure-hook ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-core-with-hanging-configure-hook/task.yaml ^ |
| @@ -0,0 +1,43 @@ +summary: Check refresh with a broken configure hook on core still works + +# FIXME: for now only +systems: [-ubuntu-core-*] + +environment: + BROKEN_CORE_SNAP: core_broken.snap + +restore: + rm -rf squashfs-root + rm -f $BROKEN_CORE_SNAP + +kill-timeout: 2m + +execute: | + snap list | awk "/^core / {print(\$3)}" > prevBoot + + echo "Breaking the configure hook of the core snap to hang forever" + unsquashfs /var/lib/snapd/snaps/core_$(cat prevBoot).snap + printf '#!/bin/sh\necho ithangs\nsleep 9999\n' > squashfs-root/meta/hooks/configure + chmod 755 squashfs-root/meta/hooks/configure + + . $TESTSLIB/snaps.sh + mksnap_fast "squashfs-root" "$BROKEN_CORE_SNAP" + rm -rf squshfs-root + + echo "Installing a new core which will trigger running the configure hook" + snap install --dangerous $BROKEN_CORE_SNAP + + echo "Checking changes" + . $TESTSLIB/changes.sh + snap changes + chg_id=$(change_id "Install \"core\" snap from file \"$BROKEN_CORE_SNAP\"" Done) + + echo "Verify the snap change" + snap change $chg_id | MATCH ".*ERROR ignoring failure in hook \"configure\".*" + snap change $chg_id | MATCH ".*ithangs.*" + + # max-runtime set in prepare.sh via SNAPD_CONFIGURE_HOOK_TIMEOUT=30s + # in the environment + snap change $chg_id | MATCH ".*exceeded maximum runtime of 30s.*" + + journalctl -u snapd | MATCH "Reported hook failure from \"configure\" for snap \"core\" as.*" | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-delta ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-delta-from-core ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-delta-from-core/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/refresh-delta-from-core/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-delta/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/refresh-delta/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-devmode ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-devmode/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/refresh-devmode/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-undo ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh-undo/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/refresh-undo/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/refresh/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/refresh/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/regression-home-snap-root-owned ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/regression-home-snap-root-owned/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/regression-home-snap-root-owned/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/regression-jailmode-1641885 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/regression-jailmode-1641885/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/regression-jailmode-1641885/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/remove-errors ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/remove-errors/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/remove-errors/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/revert ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/revert-devmode ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/revert-devmode/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/revert-devmode/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/revert-sideload ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/revert-sideload/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/revert-sideload/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/revert/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/revert/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/searching ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/searching/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/searching/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-apparmor ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-apparmor/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/security-apparmor/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-device-cgroups ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-device-cgroups/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/security-device-cgroups/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-devpts ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-devpts/pts.exp ^ |
| (renamed from snapd-2.23.5/tests/main/security-devpts/pts.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-devpts/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/security-devpts/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-private-tmp ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-private-tmp/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/security-private-tmp/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-private-tmp/tmp-create.exp ^ |
| (renamed from snapd-2.23.5/tests/main/security-private-tmp/tmp-create.exp) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-profiles ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-profiles/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/security-profiles/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-setuid-root ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/security-setuid-root/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/security-setuid-root/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/server-snap ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/server-snap/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/server-snap/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-auto-import-asserts ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-auto-import-asserts-spools ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-auto-import-asserts-spools/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-auto-import-asserts-spools/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-auto-import-asserts/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-auto-import-asserts/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-auto-mount ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-auto-mount/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-auto-mount/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-connect ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-connect/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-connect/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-disconnect ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-disconnect/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-disconnect/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-download ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-download/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-download/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-env ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-env/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-env/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-get ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-get/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-get/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-info ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-info/check.py ^ |
| (renamed from snapd-2.23.5/tests/main/snap-info/check.py) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-info/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-info/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-remove-not-mounted ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-remove-not-mounted/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-remove-not-mounted/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-alias ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-alias/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-run-alias/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-hook ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-hook/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-run-hook/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-symlink ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-symlink-error ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-symlink-error/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-run-symlink-error/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-symlink/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-run-symlink/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-userdata-current ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-run-userdata-current/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-run-userdata-current/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-service ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-service/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-service/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-set ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-set/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-set/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-sign ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-sign/create-key.exp ^ |
| (renamed from snapd-2.23.5/tests/main/snap-sign/create-key.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-sign/sign-model.exp ^ |
| (renamed from snapd-2.23.5/tests/main/snap-sign/sign-model.exp) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snap-sign/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snap-sign/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snapctl ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snapctl/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snapctl/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snapd-reexec ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/snapd-reexec/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/snapd-reexec/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/static ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/static/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/static/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/systemd-service ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/systemd-service/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/systemd-service/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try-non-fatal ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try-non-fatal/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/try-non-fatal/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try-snap-goes-away ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try-snap-goes-away/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/try-snap-goes-away/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try-snap-is-optional ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try-snap-is-optional/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/try-snap-is-optional/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try-twice-with-daemon ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try-twice-with-daemon/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/try-twice-with-daemon/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/try/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/try/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-apt ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-apt/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-apt/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-classic ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-classic/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-classic/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-create-user ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-create-user/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-create-user/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-custom-device-reg ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-custom-device-reg-extras ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-custom-device-reg-extras/manip_seed.py ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-custom-device-reg/manip_seed.py) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-custom-device-reg-extras/prepare-device ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-custom-device-reg-extras/prepare-device) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-custom-device-reg-extras/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-custom-device-reg-extras/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-custom-device-reg/manip_seed.py ^ |
| @@ -0,0 +1,21 @@ +import sys +import yaml + +with open(sys.argv[1]) as f: + seed = yaml.load(f) + +i = 0 +snaps = seed['snaps'] +while i < len(snaps): + entry = snaps[i] + if entry['name'] == 'pc': + snaps[i] = { + "name": "pc", + "unasserted": True, + "file": "pc_x1.snap", + } + break + i += 1 + +with open(sys.argv[1], 'w') as f: + yaml.dump(seed, stream=f, indent=2, default_flow_style=False) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-custom-device-reg/prepare-device ^ |
| @@ -0,0 +1,2 @@ +#!/bin/sh +snapctl set device-service.url=http://localhost:11029 | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-custom-device-reg/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-custom-device-reg/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-device-reg ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-device-reg/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-device-reg/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-fan ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-fan/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-fan/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-grub ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-grub/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-grub/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-os-release ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-os-release/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-os-release/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-reboot ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-reboot/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-reboot/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-uboot ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-uboot/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-uboot/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-upgrade ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-upgrade/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-upgrade/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-writablepaths ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/ubuntu-core-writablepaths/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/ubuntu-core-writablepaths/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/unity ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/unity/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/unity/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/writable-areas ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/main/writable-areas/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/main/writable-areas/task.yaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/manual-tests.md ^ |
| (renamed from snapd-2.23.5/tests/manual-tests.md) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/nested ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/nested/image-build ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/nested/image-build/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/nested/image-build/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1580018 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1580018/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1580018/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1595444 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1595444/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1595444/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1597839 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1597839/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1597839/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1597842 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1597842/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1597842/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1599891 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1599891/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1599891/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1606277 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1606277/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1606277/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1607796 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1607796/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1607796/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1613845 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1613845/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1613845/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1615113 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1615113/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1615113/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1618683 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1618683/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1618683/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1630479 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1630479/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1630479/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1665004 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/regression/lp-1665004/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/regression/lp-1665004/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/unit ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/unit/c-unit-tests ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/unit/c-unit-tests/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/unit/c-unit-tests/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/unit/gccgo ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/unit/gccgo/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/unit/gccgo/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/upgrade ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/upgrade/basic ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/upgrade/basic/task.yaml ^ |
| (renamed from snapd-2.23.5/tests/upgrade/basic/task.yaml) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/util ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/tests/util/benchmark.sh ^ |
| (renamed from snapd-2.23.5/tests/util/benchmark.sh) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/testutil ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/testutil/base.go ^ |
| (renamed from snapd-2.23.5/testutil/base.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/testutil/checkers.go ^ |
| (renamed from snapd-2.23.5/testutil/checkers.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/testutil/checkers_test.go ^ |
| (renamed from snapd-2.23.5/testutil/checkers_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/testutil/exec.go ^ |
| (renamed from snapd-2.23.5/testutil/exec.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/testutil/exec_test.go ^ |
| (renamed from snapd-2.23.5/testutil/exec_test.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/timeout ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/timeout/timeout.go ^ |
| (renamed from snapd-2.23.5/timeout/timeout.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/timeout/timeout_test.go ^ |
| (renamed from snapd-2.23.5/timeout/timeout_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/update-pot ^ |
| (renamed from snapd-2.23.5/update-pot) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/format.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/format.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pb.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pb.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pb_appengine.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pb_appengine.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pb_nix.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pb_nix.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pb_solaris.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pb_solaris.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pb_win.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pb_win.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pb_x.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pb_x.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pool.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pool.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pool_win.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pool_win.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/pool_x.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/pool_x.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/reader.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/reader.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/runecount.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/runecount.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/termios_bsd.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/termios_bsd.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/cheggaaa/pb/termios_nix.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/cheggaaa/pb/termios_nix.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/coreos ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/coreos/go-systemd ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/coreos/go-systemd/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/github.com/coreos/go-systemd/LICENSE) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/coreos/go-systemd/activation ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/coreos/go-systemd/activation/files.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/coreos/go-systemd/activation/files.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/coreos/go-systemd/activation/listeners.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/coreos/go-systemd/activation/listeners.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/context ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/context/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/mux/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/context/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/context/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/context/context.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/context/context.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/context/doc.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/context/doc.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/mux ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/mux/LICENSE ^ |
| @@ -0,0 +1,27 @@ +Copyright (c) 2012 Rodrigo Moraes. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/mux/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/mux/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/mux/doc.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/mux/doc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/mux/mux.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/mux/mux.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/mux/regexp.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/mux/regexp.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/mux/route.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/mux/route.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/AUTHORS ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/AUTHORS) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/client.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/client.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/conn.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/conn.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/doc.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/doc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/json.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/json.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/server.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/server.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/gorilla/websocket/util.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/gorilla/websocket/util.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/arg.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/arg.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/check_crosscompile.sh ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/check_crosscompile.sh) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/closest.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/closest.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/command.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/command.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/completion.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/completion.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/convert.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/convert.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/error.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/error.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/flags.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/flags.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/group.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/group.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/help.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/help.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/ini.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/ini.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/man.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/man.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/multitag.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/multitag.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/option.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/option.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/optstyle_other.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/optstyle_other.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/optstyle_windows.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/optstyle_windows.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/parser.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/parser.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/termsize.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/termsize.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/termsize_linux.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/termsize_linux.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/termsize_nosysioctl.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/termsize_nosysioctl.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/termsize_other.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/termsize_other.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/jessevdk/go-flags/termsize_unix.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/jessevdk/go-flags/termsize_unix.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5 ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/goconfigparser ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/goconfigparser/COPYING ^ |
| (renamed from snapd-2.23.5/vendor/github.com/mvo5/uboot-go/COPYING) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/goconfigparser/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/mvo5/goconfigparser/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/goconfigparser/configparser.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/mvo5/goconfigparser/configparser.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/uboot-go ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/uboot-go/COPYING ^ |
| @@ -0,0 +1,19 @@ +Copyright (c) 2014 Canonical + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: +. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/uboot-go/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/mvo5/uboot-go/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/uboot-go/main.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/mvo5/uboot-go/main.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/uboot-go/run-checks ^ |
| (renamed from snapd-2.23.5/vendor/github.com/mvo5/uboot-go/run-checks) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/uboot-go/uenv ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/mvo5/uboot-go/uenv/env.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/mvo5/uboot-go/uenv/env.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/gettext.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/gettext.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/mofile.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/mofile.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/pluralforms ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/pluralforms/compiler.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/pluralforms/compiler.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/pluralforms/expression.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/pluralforms/expression.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/pluralforms/genfixture.py ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/pluralforms/genfixture.py) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/pluralforms/math.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/pluralforms/math.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/pluralforms/tests.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/pluralforms/tests.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/ojii/gettext.go/test_utils.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/ojii/gettext.go/test_utils.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/testing-cabal ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/testing-cabal/subunit-go ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/testing-cabal/subunit-go/Apache-2.0 ^ |
| (renamed from snapd-2.23.5/vendor/github.com/testing-cabal/subunit-go/Apache-2.0) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/testing-cabal/subunit-go/BSD ^ |
| (renamed from snapd-2.23.5/vendor/github.com/testing-cabal/subunit-go/BSD) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/testing-cabal/subunit-go/README.md ^ |
| (renamed from snapd-2.23.5/vendor/github.com/testing-cabal/subunit-go/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/github.com/testing-cabal/subunit-go/subunit.go ^ |
| (renamed from snapd-2.23.5/vendor/github.com/testing-cabal/subunit-go/subunit.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/AUTHORS ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/AUTHORS) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/CONTRIBUTING.md ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/CONTRIBUTING.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/CONTRIBUTORS ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/CONTRIBUTORS) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/net/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/PATENTS ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/net/PATENTS) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/README ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/README) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme/autocert ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme/autocert/autocert.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/acme/autocert/autocert.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme/autocert/cache.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/acme/autocert/cache.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme/internal ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme/internal/acme ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme/internal/acme/acme.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/acme/internal/acme/acme.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme/internal/acme/jws.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/acme/internal/acme/jws.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/acme/internal/acme/types.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/acme/internal/acme/types.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bcrypt ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bcrypt/base64.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bcrypt/base64.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bcrypt/bcrypt.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bcrypt/bcrypt.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/blowfish ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/blowfish/block.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/blowfish/block.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/blowfish/cipher.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/blowfish/cipher.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/blowfish/const.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/blowfish/const.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256/bn256.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bn256/bn256.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256/constants.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bn256/constants.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256/curve.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bn256/curve.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256/gfp12.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bn256/gfp12.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256/gfp2.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bn256/gfp2.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256/gfp6.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bn256/gfp6.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256/optate.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bn256/optate.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/bn256/twist.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/bn256/twist.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/cast5 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/cast5/cast5.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/cast5/cast5.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/codereview.cfg ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/codereview.cfg) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/const_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/const_amd64.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/cswap_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/cswap_amd64.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/curve25519.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/curve25519.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/doc.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/doc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/freeze_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/freeze_amd64.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/ladderstep_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/ladderstep_amd64.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/mont25519_amd64.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/mont25519_amd64.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/mul_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/mul_amd64.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/curve25519/square_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/curve25519/square_amd64.s) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ed25519 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ed25519/ed25519.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ed25519/ed25519.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ed25519/internal ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ed25519/internal/edwards25519 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ed25519/internal/edwards25519/const.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ed25519/internal/edwards25519/const.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ed25519/internal/edwards25519/edwards25519.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ed25519/internal/edwards25519/edwards25519.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/hkdf ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/hkdf/hkdf.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/hkdf/hkdf.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/md4 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/md4/md4.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/md4/md4.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/md4/md4block.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/md4/md4block.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/nacl ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/nacl/box ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/nacl/box/box.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/nacl/box/box.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/nacl/secretbox ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/nacl/secretbox/secretbox.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ocsp ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ocsp/ocsp.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ocsp/ocsp.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/armor ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/armor/armor.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/armor/armor.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/armor/encode.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/armor/encode.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/canonical_text.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/canonical_text.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/clearsign ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/clearsign/clearsign.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/clearsign/clearsign.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/elgamal ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/elgamal/elgamal.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/elgamal/elgamal.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/errors ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/errors/errors.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/errors/errors.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/keys.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/keys.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/compressed.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/compressed.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/config.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/config.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/encrypted_key.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/encrypted_key.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/literal.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/literal.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/ocfb.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/ocfb.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/one_pass_signature.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/one_pass_signature.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/opaque.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/opaque.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/packet.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/packet.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/private_key.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/private_key.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/public_key.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/public_key.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/public_key_v3.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/public_key_v3.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/reader.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/reader.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/signature.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/signature.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/signature_v3.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/signature_v3.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/symmetric_key_encrypted.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/symmetric_key_encrypted.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/symmetrically_encrypted.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/symmetrically_encrypted.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/userattribute.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/userattribute.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/packet/userid.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/packet/userid.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/read.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/read.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/s2k ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/s2k/s2k.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/s2k/s2k.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/openpgp/write.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/openpgp/write.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/otr ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/otr/libotr_test_helper.c ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/otr/libotr_test_helper.c) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/otr/otr.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/otr/otr.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/otr/smp.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/otr/smp.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pbkdf2 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/bmp-string.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/bmp-string.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/crypto.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/crypto.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/errors.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/errors.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/internal ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/internal/rc2 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/internal/rc2/rc2.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/internal/rc2/rc2.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/mac.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/mac.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/pbkdf.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/pbkdf.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/pkcs12.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/pkcs12.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/pkcs12/safebags.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/pkcs12/safebags.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/poly1305 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/poly1305/const_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/poly1305/const_amd64.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/poly1305/poly1305.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/poly1305/poly1305.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/poly1305/poly1305_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/poly1305/poly1305_amd64.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/poly1305/poly1305_arm.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/poly1305/poly1305_arm.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/poly1305/sum_amd64.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/poly1305/sum_amd64.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/poly1305/sum_arm.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/poly1305/sum_arm.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/poly1305/sum_ref.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/poly1305/sum_ref.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ripemd160 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ripemd160/ripemd160.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ripemd160/ripemd160.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ripemd160/ripemd160block.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ripemd160/ripemd160block.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/salsa20 ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/salsa20/salsa ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/salsa20/salsa/hsalsa20.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/salsa20/salsa/hsalsa20.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/salsa20/salsa/salsa2020_amd64.s ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/salsa20/salsa/salsa2020_amd64.s) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/salsa20/salsa/salsa208.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/salsa20/salsa/salsa208.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_ref.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_ref.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/salsa20/salsa20.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/salsa20/salsa20.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/scrypt ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/scrypt/scrypt.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/scrypt/scrypt.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/doc.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/doc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/hashes.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/hashes.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/keccakf.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/keccakf.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/register.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/register.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/sha3.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/sha3.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/shake.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/shake.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/xor.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/xor.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/xor_generic.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/xor_generic.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/sha3/xor_unaligned.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/sha3/xor_unaligned.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/agent ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/agent/client.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/agent/client.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/agent/forward.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/agent/forward.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/agent/keyring.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/agent/keyring.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/agent/server.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/agent/server.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/buffer.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/buffer.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/certs.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/certs.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/channel.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/channel.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/cipher.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/cipher.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/client.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/client.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/client_auth.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/client_auth.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/common.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/common.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/connection.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/connection.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/doc.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/doc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/handshake.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/handshake.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/kex.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/kex.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/keys.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/keys.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/mac.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/mac.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/messages.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/messages.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/mux.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/mux.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/server.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/server.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/session.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/session.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/tcpip.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/tcpip.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/terminal ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/terminal/terminal.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/terminal/terminal.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/terminal/util.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/terminal/util.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/test ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/test/doc.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/test/doc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/ssh/transport.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/ssh/transport.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/tea ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/tea/cipher.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/tea/cipher.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/twofish ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/twofish/twofish.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/twofish/twofish.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/xtea ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/xtea/block.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/xtea/block.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/xtea/cipher.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/xtea/cipher.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/xts ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/crypto/xts/xts.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/crypto/xts/xts.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/LICENSE ^ |
| @@ -0,0 +1,27 @@ +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/PATENTS ^ |
| @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/context ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/context/context.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/net/context/context.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/context/ctxhttp ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/context/go17.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/net/context/go17.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/golang.org/x/net/context/pre_go17.go ^ |
| (renamed from snapd-2.23.5/vendor/golang.org/x/net/context/pre_go17.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/README.md ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/TODO ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/TODO) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/benchmark.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/benchmark.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/check.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/check.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/checkers.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/checkers.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/helpers.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/helpers.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/printer.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/printer.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/check.v1/run.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/check.v1/run.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/macaroon.v1 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/macaroon.v1/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/macaroon.v1/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/macaroon.v1/README.md ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/macaroon.v1/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/macaroon.v1/TODO ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/macaroon.v1/TODO) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/macaroon.v1/crypto.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/macaroon.v1/crypto.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/macaroon.v1/macaroon.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/macaroon.v1/macaroon.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/macaroon.v1/marshal.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/macaroon.v1/marshal.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/macaroon.v1/packet.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/macaroon.v1/packet.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/LICENSE) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/bson ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/bson/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/bson/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/bson/bson.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/bson/bson.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/bson/decimal.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/bson/decimal.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/bson/decode.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/bson/decode.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/bson/encode.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/bson/encode.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/bson/json.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/bson/json.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/decode.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/decode.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/encode.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/encode.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/extension.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/extension.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/fold.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/fold.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/indent.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/indent.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/scanner.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/scanner.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/stream.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/stream.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/mgo.v2/internal/json/tags.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/mgo.v2/internal/json/tags.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/retry.v1 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/retry.v1/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/retry.v1/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/retry.v1/README.md ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/retry.v1/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/retry.v1/clock.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/retry.v1/clock.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/retry.v1/exp.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/retry.v1/exp.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/retry.v1/regular.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/retry.v1/regular.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/retry.v1/retry.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/retry.v1/retry.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/retry.v1/strategy.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/retry.v1/strategy.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tomb.v2 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tomb.v2/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tomb.v2/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tomb.v2/README.md ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tomb.v2/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tomb.v2/context.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tomb.v2/context.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tomb.v2/context16.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tomb.v2/context16.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tomb.v2/tomb.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tomb.v2/tomb.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tylerb ^ |
| +(directory) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tylerb/graceful.v1 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tylerb/graceful.v1/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tylerb/graceful.v1/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tylerb/graceful.v1/README.md ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tylerb/graceful.v1/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tylerb/graceful.v1/graceful.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tylerb/graceful.v1/graceful.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tylerb/graceful.v1/keepalive_listener.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tylerb/graceful.v1/keepalive_listener.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/tylerb/graceful.v1/limit_listen.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/tylerb/graceful.v1/limit_listen.go) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2 ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/LICENSE ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/LICENSE) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/LICENSE.libyaml ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/LICENSE.libyaml) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/README.md ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/README.md) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/apic.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/apic.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/decode.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/decode.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/emitterc.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/emitterc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/encode.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/encode.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/parserc.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/parserc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/readerc.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/readerc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/resolve.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/resolve.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/scannerc.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/scannerc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/sorter.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/sorter.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/writerc.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/writerc.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/yaml.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/yaml.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/yamlh.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/yamlh.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/gopkg.in/yaml.v2/yamlprivateh.go ^ |
| (renamed from snapd-2.23.5/vendor/gopkg.in/yaml.v2/yamlprivateh.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/vendor/vendor.json ^ |
| (renamed from snapd-2.23.5/vendor/vendor.json) | ||
| [-] [+] | Added | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers ^ |
| +(directory) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers/binaries.go ^ |
| (renamed from snapd-2.23.5/wrappers/binaries.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers/binaries_test.go ^ |
| (renamed from snapd-2.23.5/wrappers/binaries_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers/desktop.go ^ |
| (renamed from snapd-2.23.5/wrappers/desktop.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers/desktop_test.go ^ |
| (renamed from snapd-2.23.5/wrappers/desktop_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers/export_test.go ^ |
| (renamed from snapd-2.23.5/wrappers/export_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers/services.go ^ |
| (renamed from snapd-2.23.5/wrappers/services.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers/services_gen_test.go ^ |
| (renamed from snapd-2.23.5/wrappers/services_gen_test.go) | ||
| [-] [+] | Changed | snapd_2.23.6.tar.xz/snapd-2.23.6/wrappers/services_test.go ^ |
| (renamed from snapd-2.23.5/wrappers/services_test.go) | ||
Comments for request 483839 (0)
There's nothing to be done right now
