automation: use zypper dup in tumbleweed dockerfile
authorOlaf Hering <olaf@aepfle.de>
Thu, 8 Jul 2021 13:57:04 +0000 (15:57 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Jul 2021 12:28:52 +0000 (13:28 +0100)
The 'dup' command aligns the installed packages with the packages
found in the enabled repositories, taking the repository priorities
into account. Using this command is generally a safe thing to do.

In the context of Tumbleweed using 'dup' is essential, because package
versions might be downgraded, and package names occasionally change.
Only 'dup' will do the correct thing in such cases.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
automation/build/suse/opensuse-tumbleweed.dockerfile

index a33ab0d87043a209b85c4bb7599ad15842cc2dbc..3965e7f9cdc909fce379685c4130751db5c3bce2 100644 (file)
@@ -7,7 +7,7 @@ ENV USER root
 RUN mkdir /build
 WORKDIR /build
 
-RUN zypper ref && zypper up -y --no-recommends
+RUN zypper ref && zypper dup -y --no-recommends
 RUN zypper install -y --no-recommends \
         acpica \
         bc \