summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-20 08:44:32 +0000
committerAaron Griffin <aaron@archlinux.org>2007-02-20 08:44:32 +0000
commitf62f37504af51753fcdb9c84fc1846ea8dd90606 (patch)
treea2a9868bb5cf42bfebd5875e8431b48d272a43c0 /lib/libalpm/add.c
parent1e9b79c33f784668fb8b7141759e45f3aa0e87b8 (diff)
downloadpacman-f62f37504af51753fcdb9c84fc1846ea8dd90606.tar.xz
* Some cascade removal changes. Mainly code cleanup, but this is an attempt to
track down the great "Codemac Segfault" * Fixed sortdeps - use the alpm_pkg_get functions to ensure data
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 28e66354..a2d79eb4 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -441,6 +441,9 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
/* Add files in the NEW package's backup array to the noupgrade array
* so this removal operation doesn't kill them */
+ /* TODO if we add here, all backup=() entries for all targets, new and
+ * old, we cover all bases, including backup=() locations changing hands.
+ * But is this viable? */
alpm_list_t *old_noupgrade = alpm_list_strdup(handle->noupgrade);
for(b = newpkg->backup; b; b = b->next) {
_alpm_log(PM_LOG_DEBUG, _("adding %s to the NoUpgrade array temporarilly"), (char *)b->data);