pacman/lib/libalpm
Dan McGee 7249c08bdf Improve changelog handling through addition of open/read/close functions
Thanks to Allan for inspiring all this work on what was one little TODO item
in the codebase. :)

Change changelog handling so we can now dump a changelog from both installed
packages and package files (fixes FS#7371). We do this by moving all of the
machinery to the backend where it should have been in the first place.

The changelog reading is now done through a open/read/close interface
similar to the fopen/fread/fclose functions (can you guess how it is done?).
It is buffered by the frontend, so programs using the library can read as
much or as little as they want at a time.

Unfortunately, I could not implement a changelog_feof function due to some
shortcomings of libarchive. However, I left the stub code in there,
commented out, in case it becomes possible later or anyone wants to take a
stab at it.

Original-work-by: Allan McRae <mcrae_allan@hotmail.com>
Improved-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-12-09 11:33:08 -06:00
..
po Update it translation for 3.1 2007-12-03 09:11:34 -06:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
Makefile.am Remove provide.c and provide.h . 2007-11-17 09:50:05 -06:00
add.c alpm_list : change the alpm_list_find* to return the matching item. 2007-12-02 18:12:41 -06:00
add.h War on whitespace 2007-11-16 20:18:45 -06:00
alpm.c War on whitespace 2007-11-16 20:18:45 -06:00
alpm.h Improve changelog handling through addition of open/read/close functions 2007-12-09 11:33:08 -06:00
alpm_list.c alpm_list : change the alpm_list_find* to return the matching item. 2007-12-02 18:12:41 -06:00
alpm_list.h alpm_list : change the alpm_list_find* to return the matching item. 2007-12-02 18:12:41 -06:00
backup.c libalpm/backup.c : simple refactoring. 2007-12-04 17:59:45 -06:00
backup.h libalpm/backup.c : simple refactoring. 2007-12-04 17:59:45 -06:00
be_files.c Add missing header includes for setlocale 2007-11-20 11:01:56 -06:00
cache.c War on whitespace 2007-11-16 20:18:45 -06:00
cache.h War on whitespace 2007-11-16 20:18:45 -06:00
conflict.c _alpm_checkconflicts split 2007-11-25 16:14:16 -06:00
conflict.h _alpm_checkconflicts split 2007-11-25 16:14:16 -06:00
db.c Additionally search for non-regex strings on a db search operation 2007-11-25 14:02:25 -06:00
db.h Versioned provisions. 2007-11-18 20:05:51 -06:00
delta.c Generalized alpm_list_find. 2007-11-17 09:44:48 -06:00
delta.h War on whitespace 2007-11-16 20:18:45 -06:00
deps.c Remove duplicated PM_TRANS_CONV_INSTALL_IGNOREPKG message 2007-12-05 11:28:47 -06:00
deps.h Remove _alpm_depmiss_isin 2007-12-02 17:25:34 -06:00
error.c War on whitespace 2007-11-16 20:18:45 -06:00
error.h War on whitespace 2007-11-16 20:18:45 -06:00
group.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
group.h War on whitespace 2007-11-16 20:18:45 -06:00
handle.c War on whitespace 2007-11-16 20:18:45 -06:00
handle.h War on whitespace 2007-11-16 20:18:45 -06:00
log.c War on whitespace 2007-11-16 20:18:45 -06:00
log.h War on whitespace 2007-11-16 20:18:45 -06:00
md5.c War on whitespace 2007-11-16 20:18:45 -06:00
md5.h Updates to fix Doxygen documentation generation 2007-10-14 17:29:32 -05:00
package.c Improve changelog handling through addition of open/read/close functions 2007-12-09 11:33:08 -06:00
package.h War on whitespace 2007-11-16 20:18:45 -06:00
remove.c Fix for sync1003 and sync1004 pactests 2007-11-25 15:29:37 -06:00
remove.h War on whitespace 2007-11-16 20:18:45 -06:00
server.c libalpm/server.c : fix segfault when downloading failed. 2007-12-07 09:45:20 -06:00
server.h War on whitespace 2007-11-16 20:18:45 -06:00
sync.c alpm_list : change the alpm_list_find* to return the matching item. 2007-12-02 18:12:41 -06:00
sync.h Remove duplicated get_upgrades function, use sysupgrade instead. 2007-11-21 00:05:05 -06:00
trans.c Fix a memleak in _alpm_sync_free. 2007-11-25 14:00:38 -06:00
trans.h War on whitespace 2007-11-16 20:18:45 -06:00
util.c _alpm_unpack: return 1 when the file is not found. 2007-12-08 21:54:46 -06:00
util.h War on whitespace 2007-11-16 20:18:45 -06:00