diff options
author | Dan McGee <dan@archlinux.org> | 2007-06-02 19:17:26 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-02 19:17:26 +0200 |
commit | ed13ac2cc8dd15d8a19d769cc77941ad18ac1a7c (patch) | |
tree | b20ca34955ce27277638b26a99c6284d8729b004 /lib/libalpm/sync.c | |
parent | fe2c58fc9211dfc1d50c145397b947325abd1bdc (diff) | |
download | pacman-ed13ac2cc8dd15d8a19d769cc77941ad18ac1a7c.tar.gz pacman-ed13ac2cc8dd15d8a19d769cc77941ad18ac1a7c.tar.xz |
Remove freespace checking code
This code depends on /etc/mtab existance, which is not very reliable in all
cases, especially in a chroot or non-Linux environment. Dump it for now
until we can find a better way.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 5b573b72..2178d1bd 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -753,17 +753,6 @@ int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sync /*EVENT(trans, PM_TRANS_EVT_CHECKDEPS_DONE, NULL, NULL);*/ } -#ifndef __sun__ - /* check for free space only in case the packages will be extracted */ - if(!(trans->flags & PM_TRANS_FLAG_NOCONFLICTS)) { - if(_alpm_check_freespace(trans, data) == -1) { - /* pm_errno is set by check_freespace */ - ret = -1; - goto cleanup; - } - } -#endif - cleanup: alpm_list_free(list); alpm_list_free(trail); |