Skip to content

Commit 1e18c69

Browse files
committed
Do not wildcard search by default
1 parent f42cb9c commit 1e18c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func List() ([]*Package, error) {
4747
// Search list packages available in the system that match the search
4848
// pattern
4949
func Search(pattern string) ([]*Package, error) {
50-
cmd := exec.Command("dpkg-query", "-W", "-f=${Package}\t${Architecture}\t${db:Status-Status}\t${Version}\t${Installed-Size}\t${Binary:summary}\n", "*"+pattern+"*")
50+
cmd := exec.Command("dpkg-query", "-W", "-f=${Package}\t${Architecture}\t${db:Status-Status}\t${Version}\t${Installed-Size}\t${Binary:summary}\n", pattern)
5151

5252
out, err := cmd.CombinedOutput()
5353
if err != nil {

0 commit comments

Comments
 (0)