]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Refactor arch handling
authorMichael Schroeder <mls@suse.de>
Tue, 24 Jul 2018 11:25:38 +0000 (13:25 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 24 Jul 2018 11:25:38 +0000 (13:25 +0200)
commit965e0a767d3fbd965d93fa9204276958a54a0909
tree33264c0fd9084069df162ff55555efacad8b39b9
parentfb6f72076931456fdd53d09766d79d51bf0ea47d
Refactor arch handling

lastarch is no longer the last element of id2arch, but now the
size of the array. This means that lastarch == 0 now reliable means
that no architecture was set.

To be compatible to old versions we over-allocate id2arch so that
id2arch[lastarch] is always zero.

There's also a new pool_arch2score function that abstracts accessing
the id2arch array.
bindings/solv.i
src/cleandeps.c
src/policy.c
src/pool.h
src/poolarch.c
src/poolarch.h
src/problems.c
src/repo.h
src/rules.c
src/selection.c