This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=d2f95af962903b02004db4baf8d55c76117c41a5

commit d2f95af962903b02004db4baf8d55c76117c41a5
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Aug 7 16:05:30 2025 +0200

    u-a: Move debug message from call site into alternative_prepare_install()
    
    This means any calls will automatically get the debug output.
---
 utils/update-alternatives.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/utils/update-alternatives.c b/utils/update-alternatives.c
index f9233463e..5c7ec8316 100644
--- a/utils/update-alternatives.c
+++ b/utils/update-alternatives.c
@@ -2054,6 +2054,8 @@ alternative_prepare_install(struct alternative *a, const 
char *choice)
        struct slave_link *sl;
        struct fileset *fs;
 
+       debug("prepare_install(%s)", choice);
+
        fs = alternative_get_fileset(a, choice);
        if (fs == NULL)
                error(_("can't install unknown choice %s"), choice);
@@ -2557,7 +2559,6 @@ alternative_update(struct alternative *a,
                else
                        info(_("using %s to provide %s (%s) in manual mode"),
                             new_choice, a->master_link, a->master_name);
-               debug("prepare_install(%s)", new_choice);
                alternative_prepare_install(a, new_choice);
        } else if ((reason = alternative_needs_update(a))) {
                if (reason == ALT_UPDATE_SLAVE_CHANGED) {

-- 
Dpkg.Org's dpkg

Reply via email to