[pacman-dev] [GIT] The official pacman repository branch, master, updated. v4.0.0-69-g90477f1

Dan McGee dan at archlinux.org
Tue Nov 1 11:32:47 EDT 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  90477f156c18659eee6e8be75122169060309990 (commit)
       via  8b3717ef0d55719337b061b761979a5fd9b48fbc (commit)
       via  6df558177fac6bdcbd60de05038d6e6b7f224bd3 (commit)
       via  ed3cd7573600bf8be2bda01ad75da8bae2f589fb (commit)
       via  ba7a056d586f78954ac874a3bebc6325f7e6eeb1 (commit)
       via  a4ce3edf95f148bc6eac16b6edd9bc281c7745af (commit)
       via  d98ff04cc933253b7221fc170813f7d2365d3289 (commit)
       via  4c259d51f7e0d5fac0158f70b0ad3b0043930943 (commit)
       via  f4875fab9bbe3011446032bebcbe232448a3e8d7 (commit)
       via  3343185473c79d556b29bda30c9c482c7fef5289 (commit)
       via  1052709921da50ec5203efaa313dbda75625a4e1 (commit)
       via  24881034f62cecb9e601fdfee9458f34f32b2507 (commit)
       via  8a9ce12a27970beb644952a83d27f54d1d7f751a (commit)
       via  5c1885b55eae870a10c91793d05a74d74a075e83 (commit)
       via  7a6b01d46c1da385dd34466e757beafa33e02afa (commit)
       via  d5f0395dc13fb305e75a5e78de57e148d87f12d7 (commit)
      from  a708e7d28e890c3e230a215629b7f5c58c57f58d (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 90477f156c18659eee6e8be75122169060309990
Author: Dan McGee <dan at archlinux.org>
Date:   Thu Oct 27 17:23:12 2011 -0500

    libalpm/util: don't use sprintf to convert from bin to hex
    
    This is a trivial operation that doesn't require calling a function over
    and over- just do some math and indexing into a character array.
    
    Signed-off-by: Dan McGee <dan at archlinux.org>

commit 8b3717ef0d55719337b061b761979a5fd9b48fbc
Author: Dan McGee <dan at archlinux.org>
Date:   Thu Oct 27 17:18:28 2011 -0500

    Fix size reported in CALLOC allocation failure message
    
    Signed-off-by: Dan McGee <dan at archlinux.org>

commit 6df558177fac6bdcbd60de05038d6e6b7f224bd3
Author: Dan McGee <dan at archlinux.org>
Date:   Wed Oct 26 15:51:46 2011 -0500

    Convert package and database archive reads to use file descriptors
    
    This gives us a bit more control and over the archive reading process,
    and a bit less is done behind the scenes. It also allows us to use
    fstat() in preference to stat(), which should avoid some potential race
    conditions.
    
    Some reorganization is necessary to move the stat calls after the open()
    calls. Error handling and cleanup in general is also improved, as we had
    several potential memory and file handle leaks before in some error
    paths.
    
    Signed-off-by: Dan McGee <dan at archlinux.org>

commit ed3cd7573600bf8be2bda01ad75da8bae2f589fb
Author: Dan McGee <dan at archlinux.org>
Date:   Thu Oct 27 16:24:30 2011 -0500

    libalpm/util: use low-level I/O for copyfile and checksum routines
    
    This removes an unnecessary level of buffering. We are not doing
    line-based I/O here, so we can read in blocks of 8K at a time directly
    from the file.
    
    Signed-off-by: Dan McGee <dan at archlinux.org>

commit ba7a056d586f78954ac874a3bebc6325f7e6eeb1
Author: Dan McGee <dan at archlinux.org>
Date:   Thu Oct 27 15:47:18 2011 -0500

    Add OPEN() and CLOSE() util macros
    
    These wrap the normal open() and close() low-level I/O calls and ensure
    EINTR is handled correctly.
    
    Signed-off-by: Dan McGee <dan at archlinux.org>

commit a4ce3edf95f148bc6eac16b6edd9bc281c7745af
Merge: d5f0395 d98ff04
Author: Dan McGee <dan at archlinux.org>
Date:   Tue Nov 1 10:26:45 2011 -0500

    Merge branch 'maint'

commit d5f0395dc13fb305e75a5e78de57e148d87f12d7
Author: Dan McGee <dan at archlinux.org>
Date:   Wed Oct 26 14:55:50 2011 -0500

    libalpm/util: two stat() related cleanups
    
    First, use fstat() in preference to stat() since we already have an open
    file handle. This also removes the need to check for a symlink as that
    is not possible when a file is opened.
    
    Next, use archive_entry_mode() rather than archive_entry_stat() as we
    only use the mode portion of the stat struct and the call is much
    cheaper. Also delay it until it is necessary.
    
    Signed-off-by: Dan McGee <dan at archlinux.org>

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

Summary of changes:
 contrib/paccache.in                  |    3 +
 lib/libalpm/add.c                    |   17 ++--
 lib/libalpm/be_package.c             |   72 ++++++++-----
 lib/libalpm/be_sync.c                |   56 ++++++----
 lib/libalpm/conflict.c               |   33 ++++---
 lib/libalpm/dload.c                  |   16 +++-
 lib/libalpm/util.c                   |  199 +++++++++++++++++-----------------
 lib/libalpm/util.h                   |   21 ++++-
 src/pacman/conf.c                    |    5 +-
 src/util/Makefile.am                 |    2 +-
 test/pacman/tests/fileconflict007.py |    2 +-
 test/pacman/tests/symlink010.py      |   24 ++++
 test/pacman/tests/symlink011.py      |   24 ++++
 test/pacman/tests/symlink012.py      |   24 ++++
 14 files changed, 316 insertions(+), 182 deletions(-)
 create mode 100644 test/pacman/tests/symlink010.py
 create mode 100644 test/pacman/tests/symlink011.py
 create mode 100644 test/pacman/tests/symlink012.py


hooks/post-receive
-- 
The official pacman repository


More information about the pacman-dev mailing list