summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2020-11-27 14:49:23 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2020-11-27 14:49:23 +0900
commite0e41666c5a48c53ab30c943f2b0964a3600eadd (patch)
treee4e3a9e79456e7590a902670017519fa3b2521a6 /src
parent6a68988035ea989055076d81b7ab53c7015c8c32 (diff)
downloadlibsolv-e0e41666c5a48c53ab30c943f2b0964a3600eadd.tar.gz
libsolv-e0e41666c5a48c53ab30c943f2b0964a3600eadd.tar.bz2
libsolv-e0e41666c5a48c53ab30c943f2b0964a3600eadd.zip
Imported Upstream version 0.7.13upstream/0.7.13
Diffstat (limited to 'src')
-rw-r--r--src/repo.c2
-rw-r--r--src/repodata.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/repo.c b/src/repo.c
index 45e8681..b266d8d 100644
--- a/src/repo.c
+++ b/src/repo.c
@@ -213,6 +213,8 @@ repo_free_solvable_block(Repo *repo, Id start, int count, int reuseids)
int j;
for (j = dstart; j < dend; j++)
data->attrs[j - data->start] = solv_free(data->attrs[j - data->start]);
+ if (data->lasthandle >= dstart && data->lasthandle < dend)
+ data->lasthandle = 0;
}
if (data->incoreoffset)
memset(data->incoreoffset + (dstart - data->start), 0, (dend - dstart) * sizeof(Id));
diff --git a/src/repodata.c b/src/repodata.c
index 0580cff..4e75b6d 100644
--- a/src/repodata.c
+++ b/src/repodata.c
@@ -3100,6 +3100,8 @@ repodata_swap_attrs(Repodata *data, Id dest, Id src)
tmpattrs = data->attrs[dest - data->start];
data->attrs[dest - data->start] = data->attrs[src - data->start];
data->attrs[src - data->start] = tmpattrs;
+ if (data->lasthandle == src || data->lasthandle == dest)
+ data->lasthandle = 0;
}