-// Copyright (C) 2021 Simon Ruderich
+// Copyright (C) 2021-2022 Simon Ruderich
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
},
[][]byte{nil},
[]error{nil},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/usr/bin/dpkg-query",
Args: []string{
"/usr/bin/dpkg-query",
},
[][]byte{nil, nil},
[]error{nil, nil},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/usr/bin/dpkg-query",
Args: []string{
"/usr/bin/dpkg-query",
},
Stdout: &bytes.Buffer{},
Stderr: &bytes.Buffer{},
- }, &exec.Cmd{
+ }, {
Path: "/usr/bin/apt-get",
Args: []string{
"/usr/bin/apt-get",
nil,
fmt.Errorf("fake error"),
},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/usr/bin/dpkg-query",
Args: []string{
"/usr/bin/dpkg-query",
},
Stdout: &bytes.Buffer{},
Stderr: &bytes.Buffer{},
- }, &exec.Cmd{
+ }, {
Path: "/usr/bin/apt-get",
Args: []string{
"/usr/bin/apt-get",
},
[][]byte{nil},
[]error{nil},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/usr/bin/dpkg-query",
Args: []string{
"/usr/bin/dpkg-query",