mag

a binary package manager in one C file: apk and pacman repos, CRUX, Void and Exherbo ports
git clone https://github.com/tortr-rs/mag
Log | Files | Refs | README | LICENSE

commit 83266e554f79268e4ddab3285bce0b9df330e8dd
parent 75eb3f6bb4458af44e8eaaec4bd5643d6cf5994b
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 21 Nov 2026 18:12:57 +0000

mag: -f installs over the files in the way, it did not reset the count

Diffstat:
Mmag.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/mag.c b/mag.c @@ -2132,6 +2132,7 @@ static void install_one(struct pkg *p, int explicit, const struct list *planned) } if (bad > 5) say("and %d more", bad - 5); if (bad && !force) die("not installing %s, %d files are in the way, -f writes over them", p->name, bad); + bad = 0; for (i = 0; i < 7; i++) { char *n = fmt(".%s", scripts[i]);