Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit b5c0512

Browse files
authored
Merge pull request #228 from vrothberg/rpm-entrypoint-fix
rpm differ: use entrypoint for execution
2 parents 5643619 + ded23d6 commit b5c0512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

differs/rpm_diff.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ func rpmDataFromContainer(image pkgutil.Image) (map[string]util.PackageInfo, err
154154
}
155155

156156
contConf := godocker.Config{
157-
Cmd: []string{"rpm", "--nodigest", "--nosignature", "-qa", "--qf", "%{NAME}\t%{VERSION}\t%{SIZE}\n"},
158-
Image: imageName,
157+
Entrypoint: []string{"rpm", "--nodigest", "--nosignature", "-qa", "--qf", "%{NAME}\t%{VERSION}\t%{SIZE}\n"},
158+
Image: imageName,
159159
}
160160

161161
hostConf := godocker.HostConfig{

0 commit comments

Comments
 (0)