1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 03:25:01 -05:00
pacman/lib/libalpm
Xavier Chantry 2f4ee4341d Only extract new DB entries
This implements FS#15198. The idea apparently came from Csaba Henk
<csaba-ml <at> creo.hu> which submitted a patch to Frugalware, so thanks to
him, even though I did not look at the code :)

The idea is to only extract folders for new packages into the package
database and clean up the old directories. This is essentially implementing
Xyne's "rebase" script within pacman.

If using -Syy, just remove and extract everything.

If using -Sy :
1. Generate list of directories in DB
2. Generate list of directories in archive
3. Compare both
4. Clean up old directories
5. Extract new directories

Original-work-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
[Dan: fix compile error, s/int/size_t/]
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-14 19:12:24 -05:00
..
po Add Catalan translation 2009-11-15 19:09:58 -06:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c typing: a few more fixes for special int types 2009-10-11 14:41:59 -05:00
add.h Change the interface for target loading 2009-09-12 13:06:43 +02:00
alpm_list.c Fix a small typo in alpm_list.c 2009-10-24 10:27:48 -05:00
alpm_list.h alpm_list : add new alpm_list_diff_sorted function 2009-10-11 15:28:10 -05:00
alpm.c NULL out handle after release 2010-01-19 21:52:54 -06:00
alpm.h delta : add external cleanup script 2010-03-14 18:34:42 -05:00
backup.c typing: a few more fixes for special int types 2009-10-11 14:41:59 -05:00
backup.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
be_files.c Only extract new DB entries 2010-03-14 19:12:24 -05:00
be_package.c cygwin fix : use unsigned char for ctype function 2009-10-11 15:12:20 -05:00
cache.c Update copyright headers and messages 2009-07-01 02:08:33 -05:00
cache.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
conflict.c Remove transaction type 2009-09-08 22:17:41 -05:00
conflict.h Add a new reason field to pmconflict_t struct 2009-09-08 21:58:52 -05:00
db.c int typing: s/unsigned short/int/ in libalpm 2009-10-11 13:51:47 -05:00
db.h use bitwise shift operator in enum "bit field" 2009-10-11 22:13:49 -05:00
delta.c delta : add external cleanup script 2010-03-14 18:34:42 -05:00
delta.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
deps.c Use sync.c for upgrade transaction prepare and commit 2009-09-08 22:04:14 -05:00
deps.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
dload.c improve download_internal error messages 2009-12-13 23:22:16 -06:00
dload.h download: major refactor to address lingering issues 2009-11-15 19:47:30 -06:00
error.c sync.c : duplicate the target before modifying it 2009-09-20 11:56:46 -05:00
graph.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
group.c Update copyright headers and messages 2009-07-01 02:08:33 -05:00
group.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
handle.c Add missing get_usedelta() method 2009-10-11 14:42:04 -05:00
handle.h int typing: s/unsigned short/int/ in libalpm 2009-10-11 13:51:47 -05:00
log.c Update copyright headers and messages 2009-07-01 02:08:33 -05:00
log.h Update copyright headers and messages 2009-07-01 02:08:33 -05:00
Makefile.am Refactor pkg_load/parse_descfile into a new backend file 2008-05-11 20:07:55 -05:00
md5.c Fix compile warning fail on older versions of GCC 2009-06-30 23:14:18 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Fix requiredby output 2009-12-07 22:48:59 -06:00
package.h int typing: s/unsigned short/int/ in libalpm 2009-10-11 13:51:47 -05:00
remove.c Reduce calls to list_count() in removing package 2009-10-11 14:42:04 -05:00
remove.h Change the interface for target loading 2009-09-12 13:06:43 +02:00
sync.c Fix "-Sd conflict_pkg" bug 2009-10-11 15:30:52 -05:00
sync.h Change the interface for target loading 2009-09-12 13:06:43 +02:00
trans.c Refactor do/while cycle and multiple while cycles 2009-11-15 19:40:56 -06:00
trans.h Remove transaction type 2009-09-08 22:17:41 -05:00
util.c Only extract new DB entries 2010-03-14 19:12:24 -05:00
util.h Rework the alpm_unpack functions 2009-10-11 15:18:47 -05:00