tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg_delete -R not removing all leaves



Hi,

I think the following patch should be applied to pkg_delete.
Otherwise, pkg_delete -R -r sometimes does not delete all possible leaves.

If needed, I can provide test data to reproduce the problem, but the fix seems
rather obvious I think.

Best,
Anthony

--- delete/pkg_delete.c~        2010-02-10 12:00:57.000000000 +0100
+++ delete/pkg_delete.c 2011-09-28 15:43:06.890638488 +0200
@@ -338,7 +338,7 @@
        if (process_required_by(pkg, NULL, data->pkgs, 3) == 1) {
                lpp = alloc_lpkg(pkg);
                TAILQ_INSERT_TAIL(data->pkgs, lpp, lp_link);
-               data->progress = 0;
+               data->progress = 1;
        }
 
        return 0;


Home | Main Index | Thread Index | Old Index