Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aptcc] package listing only includes newest version regardless of filters #441

Closed
hsitter opened this issue Nov 18, 2020 · 4 comments
Closed

Comments

@hsitter
Copy link
Contributor

hsitter commented Nov 18, 2020

When a package has multiple versions available aptcc will always return the newest candidate. This makes it impossible to accurately resolve debug symbols since the exact version matching the main package needs installing even when that version is not the newest one.

what apt reports:

libruby2.7-dbgsym:
  Installed: (none)
  Candidate: 2.7.0-5ubuntu1.2
  Version table:
     2.7.0-5ubuntu1.2 500
        500 http://ddebs.ubuntu.com focal-proposed/main amd64 Packages
     2.7.0-5ubuntu1.1 500
        500 http://ddebs.ubuntu.com focal-updates/main amd64 Packages
     2.7.0-5ubuntu1 500
        500 http://ddebs.ubuntu.com focal/main amd64 Packages

pkcon not newest:

→ pkcon search --filter '~newest' libruby2.7-dbgsym
Searching by details          [=========================]         
Loading cache                 [=========================]         
Querying                      [=========================]         
Finished                      [=========================]         
Available       libruby2.7-dbgsym-2.7.0-5ubuntu1.2.amd64 (ubuntu-focal-proposed-main)   debug symbols for libruby2.7
Available       libruby2.7-dbgsym-2.7.0-5ubuntu1.2.i386 (ubuntu-focal-proposed-main)    debug symbols for libruby2.7

pkcon newest:

pkcon search --filter 'newest' libruby2.7-dbgsym 
Searching by details          [=========================]         
Loading cache                 [=========================]         
Querying                      [=========================]         
Finished                      [=========================]         
Available       libruby2.7-dbgsym-2.7.0-5ubuntu1.2.amd64 (ubuntu-focal-proposed-main)   debug symbols for libruby2.7
Available       libruby2.7-dbgsym-2.7.0-5ubuntu1.2.i386 (ubuntu-focal-proposed-main)    debug symbols for libruby2.7

pkcon none:

pkcon search --filter 'none' libruby2.7-dbgsym  
Searching by details          [=========================]         
Loading cache                 [=========================]         
Querying                      [=========================]         
Finished                      [=========================]         
Available       libruby2.7-dbgsym-2.7.0-5ubuntu1.2.amd64 (ubuntu-focal-proposed-main)   debug symbols for libruby2.7
Available       libruby2.7-dbgsym-2.7.0-5ubuntu1.2.i386 (ubuntu-focal-proposed-main)    debug symbols for libruby2.7
@dantti
Copy link
Collaborator

dantti commented Nov 18, 2020

Odd I thought I created a loop to iterate over all versions when I recall adding newest filter..

@hsitter
Copy link
Contributor Author

hsitter commented Nov 18, 2020

Maybe fixed after 1.1.13? I currently only have an ubuntu 20.04 to test with

@dantti
Copy link
Collaborator

dantti commented Nov 18, 2020

nah this was years ago, I need to recheck the code..

liushuyu added a commit to liushuyu/PackageKit that referenced this issue Jul 5, 2021
... should also fix PackageKit#441, the cause is the same

this bug is actually a combination of two issues:
* aptcc backend wasn't able to check all the available package versions
* aptcc backend previous used the wrong function to fetch the package
  version  because it incorrectly used the current package version for
  the downgrade to version
liushuyu added a commit to liushuyu/PackageKit that referenced this issue Jul 5, 2021
@liushuyu
Copy link
Contributor

liushuyu commented Jul 5, 2021

Hi there, I have proposed a PR to address this issue: #496

You are very welcome to test the changes and see if the issues have indeed been fixed.

liushuyu added a commit to liushuyu/PackageKit that referenced this issue Oct 31, 2021
liushuyu added a commit to liushuyu/PackageKit that referenced this issue Feb 17, 2022
liushuyu added a commit to liushuyu/PackageKit that referenced this issue Feb 17, 2022
@ximion ximion closed this as completed in d55d4dc Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants