public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'Jan Kiszka' via isar-users" <isar-users@googlegroups.com>
To: isar-users <isar-users@googlegroups.com>
Cc: Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH 4/4] image-locales-extension: Optimize package removal
Date: Mon, 15 Sep 2025 12:07:13 +0200	[thread overview]
Message-ID: <b3e6b363d167f4eeba1da7797489f155c9e4ffde.1757930833.git.jan.kiszka@siemens.com> (raw)
In-Reply-To: <cover.1757930833.git.jan.kiszka@siemens.com>

From: Jan Kiszka <jan.kiszka@siemens.com>

"apt-get autopurge" was already available in buster. Using it saves one
startup of apt with database processing etc., which is slow in case of
cross-installation.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/classes/image-locales-extension.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/classes/image-locales-extension.bbclass b/meta/classes/image-locales-extension.bbclass
index 9149d643..b6b07dba 100644
--- a/meta/classes/image-locales-extension.bbclass
+++ b/meta/classes/image-locales-extension.bbclass
@@ -105,8 +105,7 @@ EOSH
         if [ "$localepurge_state" = 'p' ]
         then
             echo removing localepurge...
-            chroot '${ROOTFSDIR}' apt-get purge --yes localepurge
-            chroot '${ROOTFSDIR}' apt-get autoremove --purge --yes
+            chroot '${ROOTFSDIR}' apt-get autopurge --yes localepurge
         fi
 EOSUDO
 }
-- 
2.51.0

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/b3e6b363d167f4eeba1da7797489f155c9e4ffde.1757930833.git.jan.kiszka%40siemens.com.

      parent reply	other threads:[~2025-09-15 10:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-15 10:07 [PATCH 0/4] Several micro-optimizations 'Jan Kiszka' via isar-users
2025-09-15 10:07 ` [PATCH 1/4] rootfs: Implement update-initramfs stubs via symlink 'Jan Kiszka' via isar-users
2025-09-15 10:32   ` 'MOESSBAUER, Felix' via isar-users
2025-09-15 10:07 ` [PATCH 2/4] sbuild-chroot: Skip initramfs generation while installing build dependencies 'Jan Kiszka' via isar-users
2025-09-15 10:33   ` 'MOESSBAUER, Felix' via isar-users
2025-09-15 10:07 ` [PATCH 3/4] rootfs: Avoid unneeded commands inside chroot 'Jan Kiszka' via isar-users
2025-09-15 10:07 ` 'Jan Kiszka' via isar-users [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b3e6b363d167f4eeba1da7797489f155c9e4ffde.1757930833.git.jan.kiszka@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=felix.moessbauer@siemens.com \
    --cc=jan.kiszka@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox