public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Reinstall imager deps if package in IMAGER_INSTALL has changed.
@ 2023-01-30  9:07 Uladzimir Bely
  2023-01-30 10:53 ` Henning Schild
  0 siblings, 1 reply; 4+ messages in thread
From: Uladzimir Bely @ 2023-01-30  9:07 UTC (permalink / raw)
  To: isar-users

When debugging packages in `isar-apt` that are in IMAGER_INSTALL
list, they happen not to be updated in the resulting image.

For example, in case of u-boot IMAGE_BOOT_FILES is used to generate
files for `/boot` partition. Buildchroot is currently used for
extracting required files from `u-boot`, `optee-os`, etc. These
packages are installed in buildchroot via IMAGER_INSTALL list.

Since modifications of the packages don't change their versions,
updated packages don't go to buildchroot, so previously used versions
are wrongly used. The following can be seen in log:

"<package> is already the newest version"

This patch forces reinstalling all the packages from IMAGER_INSTALL
list if some of them has changed.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 meta/classes/image-tools-extension.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/image-tools-extension.bbclass b/meta/classes/image-tools-extension.bbclass
index 101704d0..640e1958 100644
--- a/meta/classes/image-tools-extension.bbclass
+++ b/meta/classes/image-tools-extension.bbclass
@@ -35,12 +35,12 @@ do_install_imager_deps() {
             -o APT::Get::List-Cleanup="0"
         apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y \
             --allow-unauthenticated --allow-downgrades --download-only install \
-            ${IMAGER_INSTALL}'
+            --reinstall ${IMAGER_INSTALL}'
 
     deb_dl_dir_export ${BUILDCHROOT_DIR} ${distro}
     sudo -E chroot ${BUILDCHROOT_DIR} sh -c ' \
         apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y \
             --allow-unauthenticated --allow-downgrades install \
-            ${IMAGER_INSTALL}'
+            --reinstall ${IMAGER_INSTALL}'
 }
 addtask install_imager_deps before do_image_tools
-- 
2.20.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-30 13:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30  9:07 [PATCH] Reinstall imager deps if package in IMAGER_INSTALL has changed Uladzimir Bely
2023-01-30 10:53 ` Henning Schild
2023-01-30 12:28   ` Moessbauer, Felix
2023-01-30 13:00     ` Roberto A. Foglietta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox