Skip to content

Wrong origin column info for grouped packages #601

@kneekoo

Description

@kneekoo

Describe the bug
In order to install Wine Staging, I added the official Wine repository and another repository for the FAudio library (wine dependency). While listing the available Wine update, the Origin column displays the source of the dependency, instead of the package listed under the Name column.

Screenshots
mint-update-wrong-origin

To Reproduce

1. Use Linux Mint 19.3 Cinnamon 32-bit and fully update the installation

2. Add the official Wine repository and install an older version of Wine Staging:

wget -q https://dl.winehq.org/wine-builds/winehq.key -O- | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

3. Add the FAudio repository:

wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O- | sudo apt-key add -
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'

4. Install an older wine-staging release

apt update
apt install --install-recommends wine-staging=5.0~rc5~bionic wine-staging-i386=5.0~rc5~bionic

5. Check for updates with the Update Manager and you should see the same thing presented in my screenshot.

More info
Due to the way mintupdate handles the origin data, the order in which you add the repositories matters for the correct origin to be displayed in the list. Here's what works properly and what not.
[good] adding the FAudio repository first and the Wine repository second
[bad] adding the Wine repository first and the FAudio one second
[bad] adding each repository in its own .list file under /etc/apt/sources.list.d/ (wine.list, faudio.list)

Expected behavior
The origin of the listed package should match its repository, not one of its dependencies, no matter if we add all our repositories in additional-repositories.list or separate .list files.

Distribution:

  • Linux Mint 19.3 Cinnamon 64-bit

Software version:
mintUpdate 5.5.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions