1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-02 08:35:06 -04:00
pacman/lib/libalpm
Dan McGee 591bfabbd3 Clean up libalpm/add.c and revise file extraction code
This is a full refactoring of _alpm_add_commit into multiple functions and a
better layout for later. Some highlights:

* No regressions in pactest performance.
* Much cleaner layout. add_commit is split into four functions:
  upgrade_remove, extract_single_file, commit_single_pkg, _alpm_add_commit
* No more super-functions, the heaviest (extract_single_file) is finally
  under 400 lines, with much improved commenting as well.
* Incorporation of Andrew Fyfe's ideas for fixing FS #7484. Try to handle
  all possible cases of extraction combinations with files, symlinks, dirs,
  and non-existant entries on the filesystem. This should make our dealings
  with libarchive fall more into our control.

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-07-15 21:36:46 -04:00
..
po Update hungarian translation 2007-07-13 15:44:39 -04:00
.gitignore Move .cvsignore -> .gitignore 2007-03-27 21:06:31 -04:00
add.c Clean up libalpm/add.c and revise file extraction code 2007-07-15 21:36:46 -04:00
add.h Preliminary checkin for alpm_list conversion 2007-01-19 09:28:44 +00:00
alpm_list.c Const correctness! 2007-06-05 17:34:33 -04:00
alpm_list.h Const correctness! 2007-06-05 17:34:33 -04:00
alpm.c Remove gettext calls from all PM_LOG_DEBUG messages 2007-07-10 14:24:58 -04:00
alpm.h Ensure requiredby entries are removed during an upgrade 2007-07-14 09:34:39 -04:00
backup.c Const correctness! 2007-06-05 17:34:33 -04:00
backup.h Const correctness! 2007-06-05 17:34:33 -04:00
be_files.c Remove some more conditional include stuff 2007-07-12 16:00:35 -04:00
cache.c Remove gettext calls from all PM_LOG_DEBUG messages 2007-07-10 14:24:58 -04:00
cache.h Big commit this time: 2007-03-03 08:13:59 +00:00
conflict.c Remove conflict message for non-existent files (reworked) 2007-07-13 10:18:52 -04:00
conflict.h This commit looks much more monumental than it is. Almost all just #include 2007-03-05 22:13:33 +00:00
db.c Remove gettext calls from all PM_LOG_DEBUG messages 2007-07-10 14:24:58 -04:00
db.h Add a alpm_db_test() function to the backend for checking DB consistency 2007-06-09 12:58:12 -04:00
deps.c libalpm/deps.c : cleanup + little fix for resolvedeps. 2007-07-15 10:37:38 -04:00
deps.h libalpm/deps.c : cleanup + little fix for resolvedeps. 2007-07-15 10:37:38 -04:00
error.c Remove some more diskspace checking holdover stuff 2007-06-13 00:31:01 -04:00
error.h Remove gettext calls from all PM_LOG_DEBUG messages 2007-07-10 14:24:58 -04:00
group.c Const correctness! 2007-06-05 17:34:33 -04:00
group.h Remove FREEGRP macro and correctly type _alpm_grp_free 2007-04-27 20:38:54 -04:00
handle.c Fix issue with <dbpath>/db.lck being truncated 2007-07-10 14:31:39 -04:00
handle.h Clean up the alpm handle 2007-07-09 15:23:26 -04:00
log.c Clean up the alpm handle 2007-07-09 15:23:26 -04:00
log.h Remove logmask stuff from backend; switch logging callback to new pm_printf 2007-06-09 12:57:50 -04:00
Makefile.am Remove versioncmp.{c,h}, clean up selective #ifdefs 2007-07-12 15:20:43 -04:00
md5.c This commit looks much more monumental than it is. Almost all just #include 2007-03-05 22:13:33 +00:00
md5.h * Added missing header include guards in md5.h and sha1.h. 2007-03-06 01:21:41 +00:00
md5driver.c Remove gettext calls from all PM_LOG_DEBUG messages 2007-07-10 14:24:58 -04:00
package.c Remove versioncmp.{c,h}, clean up selective #ifdefs 2007-07-12 15:20:43 -04:00
package.h Remove some more conditional include stuff 2007-07-12 16:00:35 -04:00
provide.c This commit looks much more monumental than it is. Almost all just #include 2007-03-05 22:13:33 +00:00
provide.h * Enforce const char* params when using strings 2007-02-26 08:38:48 +00:00
remove.c Ensure requiredby entries are removed during an upgrade 2007-07-14 09:34:39 -04:00
remove.h Preliminary checkin for alpm_list conversion 2007-01-19 09:28:44 +00:00
server.c Remove gettext calls from all PM_LOG_DEBUG messages 2007-07-10 14:24:58 -04:00
server.h Const correctness! 2007-06-05 17:34:33 -04:00
sha1.c Remove gettext calls from all PM_LOG_DEBUG messages 2007-07-10 14:24:58 -04:00
sha1.h * Added missing header include guards in md5.h and sha1.h. 2007-03-06 01:21:41 +00:00
sync.c Add --asdeps option to pacman 2007-07-15 12:46:02 -04:00
sync.h Remove FREESYNC macro and correctly type _alpm_sync_free 2007-04-27 14:53:01 -04:00
trans.c Ensure requiredby entries are removed during an upgrade 2007-07-14 09:34:39 -04:00
trans.h Remove freespace checking code 2007-06-02 13:17:26 -04:00
util.c Remove versioncmp.{c,h}, clean up selective #ifdefs 2007-07-12 15:20:43 -04:00
util.h Remove versioncmp.{c,h}, clean up selective #ifdefs 2007-07-12 15:20:43 -04:00