void-packages/srcpkgs/xbps/patches/0003-xbps_remove_pkg-misc-debugging-tweaks.patch

32 lines
1 KiB
Diff

From 56786ed31545f04f14174694d1ea2ca96539c55d Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Thu, 13 Mar 2014 21:07:44 +0100
Subject: [PATCH 3/4] xbps_remove_pkg: misc debugging tweaks.
---
lib/package_remove.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/package_remove.c b/lib/package_remove.c
index 27d1078..1dcf750 100644
--- lib/package_remove.c
+++ lib/package_remove.c
@@ -231,13 +231,12 @@ xbps_remove_pkg(struct xbps_handle *xhp, const char *pkgver, bool update)
pkgname = xbps_pkg_name(pkgver);
assert(pkgname);
- xbps_dbg_printf(xhp, "attempting to remove %s state %d\n", pkgver, state);
-
if ((rv = xbps_pkg_state_installed(xhp, pkgname, &state)) != 0) {
- xbps_dbg_printf(xhp, "cannot find %s in pkgdb: %s\n",
+ xbps_dbg_printf(xhp, "[remove] cannot find %s in pkgdb: %s\n",
pkgver, strerror(rv));
goto out;
}
+ xbps_dbg_printf(xhp, "attempting to remove %s state %d\n", pkgver, state);
if (!update)
xbps_set_cb_state(xhp, XBPS_STATE_REMOVE, 0, pkgver, NULL);
--
1.9.0