pacman/lib/libalpm
Nagy Gabor aefb4e0fa5 Remove pmsyncpkg_t
pmsyncpkg_t data sructure was removed:
1. pmpkg_t.reason is used instead of pmsyncpkg_t.newreason. (The target
packages come from sync repos, so we can use this field without any
problems. Upgrade transaction also uses this field to store this info.)
2. pmsyncpkg_t.removes was moved to pmpkg_t.removes.
This step requires careful programming, because we don't duplicate packages
when we add them to trans->packages. So we modify sync pkgcache when we
add this transaction-only info to our package. Hence it is important to
free this list when we remove any package from the target list
(remove_unresolvable, remove_conflicts, trans_free), otherwise this could
confuse the new sync transactions (with non-pacman GUI).

Overall, our code became ~100 line shorter, and we can call our helper
functions directly on trans->packages in sync.c, we don't need to maintain
parallel package lists.

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-04-11 14:05:13 -05:00
..
po fixed typos and alignment problem in Turkish translation 2009-04-05 21:40:58 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Fix for trans001.py (FS#9088) 2009-04-11 13:59:55 -05:00
add.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm.c Remove unnecessary header file, move one macro to util.c 2008-04-06 20:20:20 -05:00
alpm.h Remove pmsyncpkg_t 2009-04-11 14:05:13 -05:00
alpm_list.c alpm_list_remove treat NULL needle as "nothing" 2008-07-17 20:20:13 -05:00
alpm_list.h Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
backup.c memleak fix: ensure backup fname isn't lost if unused 2008-03-23 16:55:52 -05:00
backup.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
be_files.c Add detail documentation for alpm_db_update() 2009-04-11 12:50:37 -05:00
be_package.c Don't display filename on -Qip operation. 2008-06-04 16:25:31 -05:00
cache.c db->pkgcache_loaded and db->grpcache_loaded 2009-01-12 23:59:37 -06:00
cache.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
conflict.c Fix for trans001.py (FS#9088) 2009-04-11 13:59:55 -05:00
conflict.h Fix for trans001.py (FS#9088) 2009-04-11 13:59:55 -05:00
db.c Delay the creation of local and sync db dir. 2009-01-20 14:07:15 +01:00
db.h Remove some db abstraction crap. 2009-01-20 14:04:54 +01:00
delta.c Fix several issues with xdelta 2009-03-15 18:08:36 +01:00
delta.h libalpm: remove from_md5 and to_md5 from pmdelta_t 2009-02-28 15:33:46 -06:00
deps.c Print warning in _alpm_resolvedep() if a satisfier package is ignored without QUESTION 2009-04-11 13:54:50 -05:00
deps.h Don't prompt the user for unignore of IgnorePkg/IgnoreGroup packages 2009-02-23 20:37:14 -06:00
dload.c Remove libdownload support and fix libfetch one. 2009-01-12 22:40:15 -06:00
dload.h Remove unnecessary import in dload.h 2008-04-10 20:53:28 -05:00
error.c New error type: PM_ERR_PKG_IGNORED 2009-04-11 13:54:25 -05:00
graph.h Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
group.c Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
group.h Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
handle.c HoldPkg rework 2009-01-12 22:44:00 -06:00
handle.h HoldPkg rework 2009-01-12 22:44:00 -06:00
log.c Remove unnecessary header file, move one macro to util.c 2008-04-06 20:20:20 -05:00
log.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
Makefile.am Refactor pkg_load/parse_descfile into a new backend file 2008-05-11 20:07:55 -05:00
md5.c libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Remove pmsyncpkg_t 2009-04-11 14:05:13 -05:00
package.h Remove pmsyncpkg_t 2009-04-11 14:05:13 -05:00
remove.c HoldPkg rework 2009-01-12 22:44:00 -06:00
remove.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
sync.c Remove pmsyncpkg_t 2009-04-11 14:05:13 -05:00
sync.h Remove pmsyncpkg_t 2009-04-11 14:05:13 -05:00
trans.c Remove pmsyncpkg_t 2009-04-11 14:05:13 -05:00
trans.h Remove pmsyncpkg_t 2009-04-11 14:05:13 -05:00
util.c alpm_unpack : change prefix handling to workaround FS#12148. 2009-01-20 14:03:46 +01:00
util.h Remove unused strverscmp substitute 2008-07-24 22:16:28 -05:00