[pacman-dev] [PATCH] Don't check diskspace when using --dbonly

Dan McGee dan at archlinux.org
Wed Dec 21 17:43:39 EST 2011


Mostly a waste of time. Sure, we no longer make sure your pacman
database partition has enough space, but if you are using this option
you better know what you are doing anyway.

Signed-off-by: Dan McGee <dan at archlinux.org>
---
 lib/libalpm/sync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 534499a..0c6ec9e 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -1180,7 +1180,7 @@ int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data)
 	}
 
 	/* check available disk space */
-	if(handle->checkspace) {
+	if(handle->checkspace && !(trans->flags & ALPM_TRANS_FLAG_DBONLY)) {
 		EVENT(handle, ALPM_EVENT_DISKSPACE_START, NULL, NULL);
 
 		_alpm_log(handle, ALPM_LOG_DEBUG, "checking available disk space\n");
-- 
1.7.8



More information about the pacman-dev mailing list