diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-07-17 23:12:40 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-07-17 23:12:40 +0000 |
| commit | 518be7f92e2c2bc1a3cc3cfe1223390ae3cd9c2b (patch) | |
| tree | 0541433f4bc62cd9032bfe881fdbb212360da077 /src/pkg_remove.c | |
| parent | 76ee567986a12c22e6a606d74e31425facf9f5f4 (diff) | |
update!
Diffstat (limited to 'src/pkg_remove.c')
| -rw-r--r-- | src/pkg_remove.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/pkg_remove.c b/src/pkg_remove.c index bec7a8f..9bc5305 100644 --- a/src/pkg_remove.c +++ b/src/pkg_remove.c @@ -66,11 +66,11 @@ bool bldit_uninstall(package_t *pkg) { lua_close(B); return false; } - //if (!is_bldit_usable()) { - // log_error("bldit version is newer than the installed pkgit version"); - // log_error("consider updating pkgit"); - // if (!flags.force) return false; - //} + if (!is_bldit_usable()) { + log_error("bldit version is newer than the installed pkgit version"); + log_error("consider updating pkgit"); + if (!flags.force) return false; + } lua_pushfstring(B, "%s", inst_dirs.prefix.data); lua_setglobal(B, "prefix"); lua_pop(B, 1); @@ -120,8 +120,7 @@ static int remove_installed( if (typeflag == FTW_F) { const char *filename = src_path + ftwbuf->base; const char *ext = strrchr(filename, '.'); - if (!ext) - ext = ""; + if (!ext) ext = ""; if (strncmp(ext, ".so", 3) == 0) { char dest[MAX_PATH_LEN]; |
