canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
52 stars 73 forks source link

Bug: apt news package selector list items are ANDed together instead of ORed #3088

Closed orndorffgrant closed 5 months ago

orndorffgrant commented 5 months ago

Description of the bug

Given the package list:

          ["xorg-server", "<", "2:21.1.7-3ubuntu2.6"],
          ["xwayland", "<", "2:23.2.0-1ubuntu0.4"]

the news message will only be displayed if both of those packages are installed and match the version comparison.

Expected behavior

package comparisons should be ORed together.

Current behavior

They are ANDed, which makes it harder to specify messages that apply to any of several package situations

System information:

panlinux commented 5 months ago

I verified spec US085, which defined apt-news package and architecture selectors, and it does define the package selector to be an "OR". I also checked that it wasn't just recently modified ;)