1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 03:25:01 -05:00
pacman/lib/libalpm
Nagy Gabor d1ea16dfd0 Avoid duplicated target names.
This patch should avoid duplicated target names in the backend.
1. sync_loadtarget will return with PM_ERR_TRANS_DUP_TARGET when trying to
add a duplicated target
2. sysupgrade never pulls duplicated targets
3. resolvedeps won't pull duplicated targets anymore

A pulled list was introduced in sync_prepare to improve the
pmsyncpkg_t<->pmpkg_t list conversion by making it more direct.

Also replace sync1005 and sync1006 by the sync1008 pactest, which is
similar but more interesting (the provisions are dependencies instead of
explicit targets).
sync1005 didn't work as expected anyway. It was expecting that pacman
failed, and pacman indeed failed, but not for the good reason. It didn't
fail during the preparation step because of conflicting targets, but during
the commit step, because of a md5 error...
And sync1006 didn't pass and was not really worth fixing. We have already
enough failing pactests more important than these two.
sync1008 pass with this patch.

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
2008-03-23 16:57:14 -05:00
..
po Merge branch 'maint' 2008-03-09 12:03:54 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Kill PM_TRANS_TYPE_ADD. 2008-03-17 21:01:22 -05:00
add.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm_list.c More cleanup to alpm_list 2008-02-24 18:07:44 -06:00
alpm_list.h alpm_list.c clean-up 2008-02-25 00:52:58 +01:00
alpm.c New alpm_version function 2008-03-06 19:05:14 -06:00
alpm.h Switch pmgrp_t to dynamic allocation, general group cleanup 2008-03-23 14:51:51 -05:00
backup.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
backup.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
be_files.c Ensure DESC infolevel is loaded before checking pkg->filename 2008-02-13 22:52:53 -06:00
cache.c Switch pmgrp_t to dynamic allocation, general group cleanup 2008-03-23 14:51:51 -05:00
cache.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
conflict.c Merge branch 'maint' 2008-02-15 19:40:22 -06:00
conflict.h New _alpm_conflict_dup function 2008-01-27 11:54:25 -06:00
db.c Update database mtime after it has been extracted 2008-03-23 14:08:31 -05:00
db.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
delta.c Convert deltas to dynamic allocation 2008-01-21 19:33:32 -06:00
delta.h Convert deltas to dynamic allocation 2008-01-21 19:33:32 -06:00
deps.c Avoid duplicated target names. 2008-03-23 16:57:14 -05:00
deps.h Kill PM_TRANS_TYPE_ADD. 2008-03-17 21:01:22 -05:00
dload.c memleak fix: ensure we free result of get_destfile() 2008-03-23 16:57:14 -05:00
dload.h Add new stub download functions for use throughout the code 2008-02-24 20:21:58 -06:00
error.c Kill PM_TRANS_TYPE_ADD. 2008-03-17 21:01:22 -05:00
error.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
graph.h Move pmgraph_t struct and functions to their own header file 2008-02-16 11:58:49 -06:00
group.c Switch pmgrp_t to dynamic allocation, general group cleanup 2008-03-23 14:51:51 -05:00
group.h Switch pmgrp_t to dynamic allocation, general group cleanup 2008-03-23 14:51:51 -05:00
handle.c Remove pmserver_t abstraction 2008-02-24 20:21:58 -06:00
handle.h Remove upgradedelay and all code associated with it 2008-01-08 15:49:52 -06:00
log.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
log.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
Makefile.am Remove pmserver_t abstraction 2008-02-24 20:21:58 -06:00
md5.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
md5.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
package.c Merge branch 'maint' 2008-03-01 16:24:42 -06:00
package.h libalpm/package.c : add _alpm_pkgname_pkg_cmp function. 2008-02-06 08:46:15 +01:00
remove.c Kill PM_TRANS_TYPE_ADD. 2008-03-17 21:01:22 -05:00
remove.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
sync.c Avoid duplicated target names. 2008-03-23 16:57:14 -05:00
sync.h pmsyncpkg_t cleanup 2008-01-27 12:05:33 -06:00
trans.c Kill PM_TRANS_TYPE_ADD. 2008-03-17 21:01:22 -05:00
trans.h Remove trans->targets 2008-03-10 18:57:36 -05:00
util.c libalpm: clean up of md5sum functions. 2008-02-27 19:02:17 -06:00
util.h libalpm: clean up of md5sum functions. 2008-02-27 19:02:17 -06:00