[pacman-dev] [GIT] The official pacman repository branch, master, updated. v3.4.3-344-g942bb9e

Dan McGee dan at archlinux.org
Tue Feb 8 11:10:23 EST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official pacman repository".

The branch, master has been updated
       via  942bb9e64a7ba11e5f2a0db374bcaa21868eceb6 (commit)
       via  da3b93460258fd24e2535360586fea668fa055fb (commit)
       via  be9a60a338fd8591918711f5e826012a0d83136e (commit)
      from  bb071f4eb20810216b731f6792a32c148eb78931 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 942bb9e64a7ba11e5f2a0db374bcaa21868eceb6
Author: Dan McGee <dan at archlinux.org>
Date:   Mon Feb 7 21:33:30 2011 -0600

    Skip diskspace checking for symlinks and directories in all cases
    
    We did this in some but not all cases, assuming the 0 value coming out of
    libarchive would not be a problem. However, this does not work for "fake"
    filesystems such as rpc_pipefs, which reports a free block and total block
    count of zero.
    
    Fix this by not ever counting symlinks or directories, and adding a note
    explaining that if we someday do count directories, their size needs to be
    attributed to the proper place.
    
    This patch also includes a few cleanups/performance tweaks- avoid calling
    strlen() on the mountpoint directory string as much by storing this size in
    our mountpoint struct, and push the snprintf() call up to the calculate
    functions since we were already doing it here in the remove case.
    
    Signed-off-by: Dan McGee <dan at archlinux.org>

commit da3b93460258fd24e2535360586fea668fa055fb
Author: Pang Yan Han <pangyanhan at gmail.com>
Date:   Tue Feb 8 07:15:13 2011 +0800

    Refactor out common code in pkghash add functions
    
    The overlapping code in _alpm_pkghash_add() and _alpm_pkghash_add_sorted()
    are now in a new static function pkghash_add_pkg(). This function has a
    third flag parameter which determines whether the package should be added in
    sorted order.
    
    Signed-off-by: Pang Yan Han <pangyanhan at gmail.com>
    Signed-off-by: Dan McGee <dan at archlinux.org>

commit be9a60a338fd8591918711f5e826012a0d83136e
Author: Pang Yan Han <pangyanhan at gmail.com>
Date:   Tue Feb 8 06:59:04 2011 +0800

    Handle null pkgcache for local/sync db_populate()
    
    In sync_db_populate() and local_db_populate(), a NULL db->pkgcache is not
    caught, allowing the functions to continue instead of exiting.
    
    A later alpm_list_msort() call which uses alpm_list_nth() will thus traverse
    invalid pointers in a non-existent db->pkgcache->list.
    
    pm_errno is set to PM_ERR_MEMORY as _alpm_pkghash_create() will only return
    NULL when we run out of memory / exceed max hash table size. The local/sync
    db_populate() functions are also exited.
    
    Signed-off-by: Pang Yan Han <pangyanhan at gmail.com>
    Signed-off-by: Dan McGee <dan at archlinux.org>

-----------------------------------------------------------------------

Summary of changes:
 lib/libalpm/be_local.c  |    4 ++
 lib/libalpm/be_sync.c   |    8 ++++-
 lib/libalpm/diskspace.c |   85 ++++++++++++++++++++++++-----------------------
 lib/libalpm/diskspace.h |    1 +
 lib/libalpm/pkghash.c   |   45 ++++++++----------------
 5 files changed, 70 insertions(+), 73 deletions(-)


hooks/post-receive
-- 
The official pacman repository


More information about the pacman-dev mailing list