index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-01-25 21:31:20 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-27 11:54:25 -0600 |
commit | ea828b5693d389d24c744841385b16cb37a32fce (patch) | |
tree | f985ae6d3f1fec2bd9c5f2eca78ed76a5f880dd5 /lib/libalpm/conflict.c | |
parent | f432ce41e0892b17d062d8d64ac221e7bc4d718c (diff) |
-rw-r--r-- | lib/libalpm/conflict.c | 11 |
diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 7b4cd0c2..9f6f93da 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -62,6 +62,17 @@ void _alpm_conflict_free(pmconflict_t *conflict) FREE(conflict); } +pmconflict_t *_alpm_conflict_dup(const pmconflict_t *conflict) +{ + pmconflict_t *newconflict; + CALLOC(newconflict, 1, sizeof(pmconflict_t), RET_ERR(PM_ERR_MEMORY, NULL)); + + STRDUP(newconflict->package1, conflict->package1, RET_ERR(PM_ERR_MEMORY, NULL)); + STRDUP(newconflict->package2, conflict->package2, RET_ERR(PM_ERR_MEMORY, NULL)); + + return(newconflict); +} + int _alpm_conflict_isin(pmconflict_t *needle, alpm_list_t *haystack) { alpm_list_t *i; |