rpm-ostree/tests/common
Jonathan Lebon 6c933bbf3c lib/package: fix package diffs for multilib
Our complicated heuristics for handling multiple packages of the same
name comes back to bite us. In the multilib case, we can have packages
of the same NEVR, but different arch, sitting in the same tree.

Previously, even if the arch was different, we would still mark it as an
upgrade or downgrade. But that complicates things in the case of
multiple packages of the same name in the same tree.

We greatly simplify things here by making the diff algorithm dumber. We
now only consider a package as "modified" (i.e. upgraded/downgraded) if
it has the same NA (but different EVR). This makes handling multilib
cases natural and seems worth it overall vs trying to handle the odd
e.g. noarch <--> archful pkg transitions that could happen.

Closes: #1230
Approved by: cgwalters
2018-02-06 21:30:48 +00:00
..
libcomposetest.sh Fix "releasever" option, test it by default 2018-01-23 15:18:52 +00:00
libtest-core.sh tests/libtest-core: support multiple literal checks 2018-01-11 20:17:50 +00:00
libtest.c tests: add libtest.c for binary tests 2017-06-29 16:16:54 +00:00
libtest.h tests: add libtest.c for binary tests 2017-06-29 16:16:54 +00:00
libtest.sh lib/package: fix package diffs for multilib 2018-02-06 21:30:48 +00:00
libvm.sh Initial support for automatic updates 2018-01-27 23:52:43 +00:00