From 2721772488e2e22ac53bb5712d736644a96b9569 Mon Sep 17 00:00:00 2001
From: Timo Teräs <timo.teras@iki.fi>
Date: Fri, 20 Sep 2013 21:54:04 +0300
Subject: db: minor improvements to an error and a verbose log messages

---
 src/database.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/database.c b/src/database.c
index 1adfc12..01914ee 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2277,7 +2277,7 @@ static int apk_db_install_archive_entry(void *_ctx,
 		diri = find_diri(ipkg, bdir, diri, &ctx->file_diri_node);
 		if (diri == NULL) {
 			if (!APK_BLOB_IS_NULL(bdir)) {
-				apk_error(PKG_VER_FMT": "BLOB_FMT": no dirent in archive\n",
+				apk_error(PKG_VER_FMT": "BLOB_FMT": no dirent in archive",
 					  PKG_VER_PRINTF(pkg), BLOB_PRINTF(name));
 				ipkg->broken_files = 1;
 				return 0;
@@ -2376,7 +2376,7 @@ static int apk_db_install_archive_entry(void *_ctx,
 			memcpy(&file->csum, &ae->csum, sizeof(file->csum));
 	} else {
 		if (apk_verbosity >= 3)
-			apk_message("%s", ae->name);
+			apk_message("%s (dir)", ae->name);
 
 		if (name.ptr[name.len-1] == '/')
 			name.len--;
-- 
cgit v1.2.3-70-g09d2