[pacman-dev] [GIT] The official pacman repository branch, master, updated. v3.4.2-256-g3863e48
Dan McGee
dan at archlinux.org
Fri Jan 21 20:31:22 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 3863e48788e2424c4f1469e72dabda6fba595c4c (commit)
via c86ff120c870a2d0e0427567ae7449e23ad42954 (commit)
via 01c8f39ab8db36ad7ac1c2078a8c1a5b7504192a (commit)
via aff3e63c451ead18571a8abed56e911f71906fe6 (commit)
via b40c8e292244c497ddb557428b8bd152ed7f0482 (commit)
via c49f1980429f88cd0a73340df7c1e9d02e7026a7 (commit)
via f65edb7f299537357354b5bd637353db6c7ddcd1 (commit)
via a88cb03a58909304603a794e42070656fca6b626 (commit)
from 665528d7bac99228849d1162f78c0817bc619eee (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 3863e48788e2424c4f1469e72dabda6fba595c4c
Author: Dan McGee <dan at archlinux.org>
Date: Fri Jan 21 10:11:59 2011 -0600
Add a likely_pkg hint argument to sync_db_read
In most (all?) cases, we will process all files for a given sync database
entry sequentially. The code currently does an _alpm_pkg_find() for every
file in the database, but we had the "current" package readily available.
Shift some local variables around a bit to expose this to sync_db_read() and
use it if the package is the correct one.
On my system, this cuts calls to _alpm_pkg_find() from 20,769 to 10,349
calls during a -Qu operation, and results in a ~30% speedup of the same
operation (0.35 sec -> 0.27 sec). This benefit should be apparent anywhere
we read in the full contents of the sync databases.
Signed-off-by: Dan McGee <dan at archlinux.org>
commit c86ff120c870a2d0e0427567ae7449e23ad42954
Author: Dan McGee <dan at archlinux.org>
Date: Wed Jan 19 12:20:32 2011 -0600
Improve splitname memory allocation
We don't need to create a temporary copy of the string if we are smart with
our pointer manipulation and string copying. This saves a bunch of string
duplication during database parsing, both local and sync.
Signed-off-by: Dan McGee <dan at archlinux.org>
commit 01c8f39ab8db36ad7ac1c2078a8c1a5b7504192a
Author: Dan McGee <dan at archlinux.org>
Date: Wed Jan 19 12:00:39 2011 -0600
Improve depends string parsing
Remove the need for an unconditional string duplication by using pointer
arithmetic instead, and strndup() instead of an unspecified-length strdup().
This should reduce memory churn a fair amount as this is called pretty
frequently during database loads.
Signed-off-by: Dan McGee <dan at archlinux.org>
commit aff3e63c451ead18571a8abed56e911f71906fe6
Author: Dan McGee <dan at archlinux.org>
Date: Wed Jan 19 12:00:39 2011 -0600
Add strndup fallback function to libalpm util
The same fallback we are currently using in the pacman frontend.
Signed-off-by: Dan McGee <dan at archlinux.org>
commit b40c8e292244c497ddb557428b8bd152ed7f0482
Author: Dan McGee <dan at archlinux.org>
Date: Wed Jan 19 12:22:33 2011 -0600
Update valgrind suppressions file
We haven't tweaked this in a while, but some of the old stuff seems to no
longer be necessary and there are a few new things we should add.
Signed-off-by: Dan McGee <dan at archlinux.org>
commit c49f1980429f88cd0a73340df7c1e9d02e7026a7
Author: Dan McGee <dan at archlinux.org>
Date: Thu Jan 20 15:41:03 2011 -0600
Add a pactest for the situation in FS#7524
Confirming the current behavior. And yes, the error message is still no
better than it was when this was reported 3.5 years ago.
Signed-off-by: Dan McGee <dan at archlinux.org>
commit f65edb7f299537357354b5bd637353db6c7ddcd1
Author: Dan McGee <dan at archlinux.org>
Date: Tue Jan 18 13:19:25 2011 -0600
Fix integrity check status when installing from file
When installing packages from a file, the integrity check count
stays at (0/x) complete. This ensures it is bumped to (x/x) at
the end of the process.
Signed-off-by: Dan McGee <dan at archlinux.org>
commit a88cb03a58909304603a794e42070656fca6b626
Author: Dan McGee <dan at archlinux.org>
Date: Mon Jan 10 13:56:27 2011 -0600
makepkg: perform all sanity checks before erroring out
It is pretty annoying to get one, fix it, and then get another. We should be
able to continue on through most of the sanity checks in one go so the user
gets all the error messages at once.
Also ensure $pkgbase is defined by the time we call this function;
previously we printed nothing where a package name should have been due to
this oversight.
Signed-off-by: Dan McGee <dan at archlinux.org>
-----------------------------------------------------------------------
Summary of changes:
lib/libalpm/be_sync.c | 26 ++++++++++++--------
lib/libalpm/deps.c | 53 +++++++++++++++--------------------------
lib/libalpm/sync.c | 3 +-
lib/libalpm/util.c | 49 +++++++++++++++++++++++++++-----------
lib/libalpm/util.h | 5 ++++
scripts/makepkg.sh.in | 37 +++++++++++++++--------------
test/pacman/tests/sync407.py | 38 ++++++++++++++++++++++++++++++
valgrind.supp | 27 +++++++++++----------
8 files changed, 148 insertions(+), 90 deletions(-)
create mode 100644 test/pacman/tests/sync407.py
hooks/post-receive
--
The official pacman repository
More information about the pacman-dev
mailing list