From 46e6a00482fc714236266a775d96a7aa6fe6e7c5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 23 Apr 2015 10:37:32 +0200 Subject: [PATCH] xbps-fbulk: check for xcode==2 to add it to "skipped". --- bin/xbps-fbulk/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c index 50ce87c7..3083087c 100644 --- a/bin/xbps-fbulk/main.c +++ b/bin/xbps-fbulk/main.c @@ -177,6 +177,7 @@ processCompletion(struct item *item) { struct depn *depn; struct item *xitem; + const char *logdir; char *logpath1; char *logpath2; char *logpath3; @@ -189,8 +190,13 @@ processCompletion(struct item *item) */ if (item->status == XRUN) { logpath1 = xbps_xasprintf("%s/run/%s", LogDir, item->pkgn); - logpath2 = xbps_xasprintf("%s/%s/%s", LogDir, - item->xcode ? "bad" : "good" , item->pkgn); + if (!item->xcode) + logdir = "good"; + else if (item->xcode == 2) + logdir = "skipped"; + else + logdir = "bad"; + logpath2 = xbps_xasprintf("%s/%s/%s", LogDir, logdir, item->pkgn); rename(logpath1, logpath2); free(logpath1); free(logpath2);