mirror of
https://github.com/containers/podman.git
synced 2025-11-29 17:48:05 +08:00
Fix podman build "newer" pull policy
It's currently ignored. Fixes: #22845 Signed-off-by: Zifei Tong <zifeitong@gmail.com>
This commit is contained in:
@@ -324,6 +324,10 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *Buil
|
||||
pullPolicy = buildahDefine.PullNever
|
||||
}
|
||||
|
||||
if strings.EqualFold(strings.TrimSpace(flags.Pull), "newer") {
|
||||
pullPolicy = buildahDefine.PullIfNewer
|
||||
}
|
||||
|
||||
var cleanTmpFile bool
|
||||
flags.Authfile, cleanTmpFile = buildahUtil.MirrorToTempFileIfPathIsDescriptor(flags.Authfile)
|
||||
if cleanTmpFile {
|
||||
|
||||
Reference in New Issue
Block a user