diff options
author | Dan McGee <dan@archlinux.org> | 2011-12-21 23:42:47 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-20 23:49:11 +0100 |
commit | 78adb71f20ee335dff49e34d33f04817a40002b6 (patch) | |
tree | c6ca6e8542e30abd2233f069d2f7a2d237bdf62c /lib | |
parent | fe659153d5971e41b7483bb40c31cd40f58f9d9c (diff) | |
download | pacman-78adb71f20ee335dff49e34d33f04817a40002b6.tar.gz pacman-78adb71f20ee335dff49e34d33f04817a40002b6.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>
(cherry picked from commit ee969006056c86e88d5f179a7575d64f23d5b252)
Diffstat (limited to 'lib')
-rw-r--r-- | 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 a946a7df..185878aa 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"); |