[pacman-dev] [PATCH] Don't check for diskspace when using --dbonly
It doesn't make much sense, as we aren't going to be manipulating any package files other than local database entries. Signed-off-by: Dan McGee <dan@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 a946a7d..185878a 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -1137,7 +1137,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.9.1
On 20/02/12 15:49, Dan McGee wrote:
It doesn't make much sense, as we aren't going to be manipulating any package files other than local database entries.
I'd say great minds think alike... but they are both you so that proves nothing! http://projects.archlinux.org/pacman.git/commit/?id=ee969006
participants (2)
-
Allan McRae
-
Dan McGee