summaryrefslogtreecommitdiff
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-21 16:42:47 -0600
committerDan McGee <dan@archlinux.org>2011-12-21 16:42:47 -0600
commitee969006056c86e88d5f179a7575d64f23d5b252 (patch)
tree17e7bed96321a4768608d292ec839aef0b686852 /lib/libalpm/sync.c
parent71164b76c4df1ba28d7280136050a84d39490f26 (diff)
downloadpacman-ee969006056c86e88d5f179a7575d64f23d5b252.tar.xz
Don't check diskspace when using --dbonly
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@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 534499ae..0c6ec9ea 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");