[pacman-dev] [GIT] The official pacman repository branch, master, updated. v3.4.3-341-gbb071f4
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 bb071f4eb20810216b731f6792a32c148eb78931 (commit) via 3cf870eda5842fb07e384026c7dc4279d2c26aca (commit) via 3865352d2390982f45e2b85185dd5b4d89763e93 (commit) via 30bb969ace21b86a8e41de7d30e9d39d86271ed5 (commit) via e17c4fe6115fb7b0f58540c8f825267688fa81b6 (commit) via 15e143bdfba292bf47107e88415812c90c54e15b (commit) via fafa909a2dd7efa2966f72e4ceae41dd1457f48c (commit) via 7664a58d4e95f0e1f1b433add61f3b658b926aaa (commit) via e34fc4eddf73f2453b42235f5ae7d65f75db66fc (commit) via c12ccbfb2c7aa907ba01339a1a29089c65ea9911 (commit) via 7467fb9e763d9895044791eb0407e58d2793f377 (commit) via 6b0d4674bb132b2583920211cc798f3db77ec392 (commit) via 1f145bcd1a4fb22d4cb548a3be64898f60820695 (commit) via 14fd1e63a2ce420c555c6de34a815a8b62a9859b (commit) via 09e582b4117356f996f6d94ca5e490aebd0a0fd5 (commit) via 01c3c7e4f28d837f0b8a6aaaf27d16894d4b762d (commit) via 11e5e86151f83219b1cedbca31be7530911e25eb (commit) via 93207863493b54e794098b4ee5987d59c8c4b14b (commit) via c9820ec97b417d33dc37eb589f069766f1068ea1 (commit) via d843c86b7b7cbf376716817e7c2c55b1f9360a72 (commit) via 021085624ea94a7116c60552e5c153de6cb5f057 (commit) via ce5471511257ada996bfcb6ea4236cd89c0d6890 (commit) via f8fdce6cb0da4d832ffa730e0dacb5544c1f8154 (commit) via 5dae577a87795e7666f05613cf9aa7207fd17346 (commit) via e17b0446bd815f7b25f5bf0b838ef3d02d4eb64e (commit) from f89277536612ff8e204cefcb6ff7cca7079d6bd5 (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 bb071f4eb20810216b731f6792a32c148eb78931 Author: Allan McRae <allan@archlinux.org> Date: Sat Feb 5 10:24:58 2011 +1000 makepkg: more bash-3.2 compatibility Adding the "|| true" to the subshell prevents bash-3.2 setting off the error_trap but requires changing the if statement. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org> commit 3cf870eda5842fb07e384026c7dc4279d2c26aca Merge: 3865352 e17c4fe Author: Dan McGee <dan@archlinux.org> Date: Sun Feb 6 12:52:20 2011 -0600 Merge branch 'maint' commit 3865352d2390982f45e2b85185dd5b4d89763e93 Author: Pang Yan Han <pangyanhan@gmail.com> Date: Sat Feb 5 11:48:54 2011 +0800 Remove redundant _alpm_strtrim() in be_local.c When reading the "desc" file in _alpm_local_db_read(), some strings are trimmed and checked for length > 0 before their use/duplication subsequently. They are then trimmed again when there is no need to. The following code snippet should illustrate it clearly: while(fgets(line, sizeof(line), fp) && strlen(_alpm_strtrim(line))) { char *linedup; STRDUP(linedup, _alpm_strtrim(line), goto error); info->groups = alpm_list_add(info->groups, linedup); } This patch removes the redundant _alpm_strtrim() calls in _alpm_local_db_read() such as the one inside the STRDUP shown above. Signed-off-by: Pang Yan Han <pangyanhan@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org> commit 30bb969ace21b86a8e41de7d30e9d39d86271ed5 Author: Pang Yan Han <pangyanhan@gmail.com> Date: Fri Feb 4 23:34:16 2011 +0800 Handle PM_ERR_WRITE in alpm_strerror() PM_ERR_WRITE is defined in alpm.h but not handled in alpm_strerror(). This patch corrects that. Signed-off-by: Pang Yan Han <pangyanhan@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org> commit fafa909a2dd7efa2966f72e4ceae41dd1457f48c Author: Dan McGee <dan@archlinux.org> Date: Fri Feb 4 09:15:51 2011 -0600 Update translation file indexes and Makevars Signed-off-by: Dan McGee <dan@archlinux.org> commit 7664a58d4e95f0e1f1b433add61f3b658b926aaa Author: Dan McGee <dan@archlinux.org> Date: Fri Feb 4 09:15:22 2011 -0600 Add comment about download file resolution Signed-off-by: Dan McGee <dan@archlinux.org> commit e34fc4eddf73f2453b42235f5ae7d65f75db66fc Merge: c12ccbf 6b0d467 Author: Dan McGee <dan@archlinux.org> Date: Fri Feb 4 09:10:25 2011 -0600 Merge remote-tracking branch 'allan/hash' commit c12ccbfb2c7aa907ba01339a1a29089c65ea9911 Author: Dan McGee <dan@archlinux.org> Date: Fri Feb 4 09:00:47 2011 -0600 Add more error checking and logging Signed-off-by: Dan McGee <dan@archlinux.org> commit 7467fb9e763d9895044791eb0407e58d2793f377 Author: Dan McGee <dan@archlinux.org> Date: Fri Feb 4 08:42:52 2011 -0600 Ensure found files are actually files We located files in a few places but didn't check if they were files or directories. Ensure they are actually files using stat() and S_ISREG(); this showed itself when trying to download to the directory name itself in FS#22645. Signed-off-by: Dan McGee <dan@archlinux.org> commit 6b0d4674bb132b2583920211cc798f3db77ec392 Author: Dan McGee <dan@archlinux.org> Date: Thu Feb 3 10:55:26 2011 -0600 Improve pkghash_remove algorithm Rather than potentially move every item to the next NULL, attempt to move at most one item at a time by iterating backwards from the NULL location in the hash array. If we move an item, we repeat the process on the now shorter "chain" until no more items need moving. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org> commit 1f145bcd1a4fb22d4cb548a3be64898f60820695 Author: Dan McGee <dan@archlinux.org> Date: Wed Feb 2 20:46:29 2011 -0600 Use alpm_list_remove_item in pkghash_remove Removes the code that was duplicated and has now been refactored into a separate method. Signed-off-by: Dan McGee <dan@archlinux.org> commit 14fd1e63a2ce420c555c6de34a815a8b62a9859b Author: Dan McGee <dan@archlinux.org> Date: Wed Feb 2 20:46:28 2011 -0600 Add new alpm_list_remove_item() function This takes in the list and a list item, and does the pointer dance necessary to remove it from the list regardless of whether it is first, last, or somewhere in the middle. It is useful for callers that already know what item needs to be removed and have a pointer to it rather than doing a search by data that the plain alpm_list_remove() does. Refactor alpm_list_remove() to use this function as well. Signed-off-by: Dan McGee <dan@archlinux.org> commit 09e582b4117356f996f6d94ca5e490aebd0a0fd5 Author: Dan McGee <dan@archlinux.org> Date: Wed Feb 2 20:46:27 2011 -0600 Add a new removal smoke test Hint: this will really stress hash table removal. Signed-off-by: Dan McGee <dan@archlinux.org> commit 01c3c7e4f28d837f0b8a6aaaf27d16894d4b762d Author: Allan McRae <allan@archlinux.org> Date: Sun Jan 30 22:42:45 2011 +1000 Actually remove packages from pkghash on removal Fully removes a package from the hash. Also unify prototype with removal from an alpm_list_t, fixing issues when removing a package from the pkgcache. Signed-off-by: Allan McRae <allan@archlinux.org> commit 11e5e86151f83219b1cedbca31be7530911e25eb Author: Allan McRae <allan@archlinux.org> Date: Sat Jan 29 23:24:13 2011 +1000 Refactor finding position for new hash entry Signed-off-by: Allan McRae <allan@archlinux.org> commit 93207863493b54e794098b4ee5987d59c8c4b14b Author: Allan McRae <allan@archlinux.org> Date: Sat Jan 29 22:50:55 2011 +1000 Rehash efficiently Rehash without recreating the hash table list or reallocating the memory for holding the list nodes. Signed-off-by: Allan McRae <allan@archlinux.org> commit c9820ec97b417d33dc37eb589f069766f1068ea1 Author: Allan McRae <allan@archlinux.org> Date: Sat Jan 29 11:47:31 2011 +1000 Slightly more efficient rehash size selection While probably still not optimal in terms of everyday usage in pacman, this reduces the absolute size increase to "more reasonable" levels. For databases greater than 5000 in size, the minimum size increase is used which is still on the order of a 10% increase. Signed-off-by: Allan McRae <allan@archlinux.org> commit d843c86b7b7cbf376716817e7c2c55b1f9360a72 Author: Allan McRae <allan@archlinux.org> Date: Sat Jan 29 11:39:25 2011 +1000 Error handling for maximum database size Check that the requested size of a pkghash is not beyond the maximum prime. Also check for successful creation of a new hash before rehashing. Signed-off-by: Allan McRae <allan@archlinux.org> commit 021085624ea94a7116c60552e5c153de6cb5f057 Author: Dan McGee <dan@archlinux.org> Date: Fri Jan 28 12:04:27 2011 -0600 Change default sync hash table sizing to 66% full Since the sync database never changes size once we initialize it, we allow it to be filled a bit more. This reduces the overall memory footprint needed by the hash table. Signed-off-by: Dan McGee <dan@archlinux.org> commit ce5471511257ada996bfcb6ea4236cd89c0d6890 Author: Dan McGee <dan@archlinux.org> Date: Fri Jan 28 12:03:36 2011 -0600 Implement a quick and dirty rehash function This allows us to get through the rehash required by smoke001 and pass all pactests. It is by no means the best or most efficient implementation but it does do the job. Signed-off-by: Dan McGee <dan@archlinux.org> commit f8fdce6cb0da4d832ffa730e0dacb5544c1f8154 Author: Allan McRae <allan@archlinux.org> Date: Tue Jan 25 11:49:34 2011 +1000 Read pkgcache into hash Read the package information for sync/local databases into a pmpkghash_t structure. Provide a alpm_db_get_pkgcache_list() method that returns the list from the hash object. Most usages of alpm_db_get_pkgcache are converted to this at this stage for ease of implementation. Review whether these are better accessing the hash table directly at a later stage. Signed-off-by: Allan McRae <allan@archlinux.org> commit 5dae577a87795e7666f05613cf9aa7207fd17346 Author: Dan McGee <dan@archlinux.org> Date: Mon Jan 24 17:48:54 2011 -0600 Get estimated package count when populating databases This works for both local and sync databases in slightly different ways. For the local database, we can use the directory hard link count on the local/ folder. For sync databases, we use the archive size coupled with some computed average per-package sizes to determine an estimate. This is currently a dead assignment once calculated, but could be used to set the initial size of a hash table. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org> commit e17b0446bd815f7b25f5bf0b838ef3d02d4eb64e Author: Allan McRae <allan@archlinux.org> Date: Fri Jan 7 00:32:17 2011 +1000 Add a hash table for holding packages Signed-off-by: Allan McRae <allan@archlinux.org> ----------------------------------------------------------------------- Summary of changes: lib/libalpm/Makefile.am | 1 + lib/libalpm/alpm.h | 4 +- lib/libalpm/alpm_list.c | 86 ++-- lib/libalpm/alpm_list.h | 1 + lib/libalpm/be_local.c | 38 +- lib/libalpm/be_sync.c | 77 +++- lib/libalpm/conflict.c | 4 +- lib/libalpm/db.c | 55 ++- lib/libalpm/db.h | 7 +- lib/libalpm/deps.c | 8 +- lib/libalpm/dload.c | 18 +- lib/libalpm/error.c | 2 + lib/libalpm/package.c | 2 +- lib/libalpm/pkghash.c | 346 ++++++++++++ lib/libalpm/pkghash.h | 58 ++ lib/libalpm/po/LINGUAS | 3 + lib/libalpm/po/Makevars | 2 +- lib/libalpm/po/POTFILES.in | 3 +- lib/libalpm/po/{en_GB.po => da.po} | 271 +++++----- lib/libalpm/po/{libalpm.pot => fi.po} | 14 +- lib/libalpm/po/{libalpm.pot => ko.po} | 14 +- lib/libalpm/remove.c | 6 +- lib/libalpm/sync.c | 8 +- lib/libalpm/util.c | 5 +- po/LINGUAS | 3 + po/Makevars | 5 +- po/POTFILES.in | 3 + po/{en_GB.po => da.po} | 1001 +++++++++++++++++---------------- po/{pacman.pot => fi.po} | 14 +- po/kk.po | 192 +------ po/{pacman.pot => ko.po} | 14 +- scripts/makepkg.sh.in | 4 +- src/pacman/deptest.c | 2 +- src/pacman/query.c | 6 +- src/pacman/sync.c | 10 +- src/pacman/upgrade.c | 2 + src/util/cleanupdelta.c | 2 +- src/util/pactree.c | 4 +- src/util/testdb.c | 4 +- test/pacman/tests/smoke001.py | 9 +- test/pacman/tests/smoke003.py | 19 + 41 files changed, 1386 insertions(+), 941 deletions(-) create mode 100644 lib/libalpm/pkghash.c create mode 100644 lib/libalpm/pkghash.h copy lib/libalpm/po/{en_GB.po => da.po} (53%) copy lib/libalpm/po/{libalpm.pot => fi.po} (96%) copy lib/libalpm/po/{libalpm.pot => ko.po} (96%) copy po/{en_GB.po => da.po} (52%) copy po/{pacman.pot => fi.po} (99%) copy po/{pacman.pot => ko.po} (99%) create mode 100644 test/pacman/tests/smoke003.py hooks/post-receive -- The official pacman repository
participants (1)
-
dan@archlinux.org