Bug 36890 - double version postfix is printed for allow-duplicated packages when selecting them
Summary: double version postfix is printed for allow-duplicated packages when selectin...
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: apt (show other bugs)
Version: unstable
Hardware: all Linux
: P3 minor
Assignee: Ivan Zakharyaschev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-13 05:59 MSK by Ivan Zakharyaschev
Modified: 2020-08-19 14:03 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2019-06-13 05:59:52 MSK
The line:

Version kernel-image-std-def#3:4.4.86-alt0.M80C.2#3:4.4.86-alt0.M80C.2 for kernel-image-std-def=4.4.86-alt0.M80C.2 is already installed

has a double version postfix in the example below:

[root@localhost .in]# apt-get remove kernel-image-std-def=4.4.86-alt0.M80C.2
Reading Package Lists... Done
Building Dependency Tree... Done
Version kernel-image-std-def#3:4.4.86-alt0.M80C.2#3:4.4.86-alt0.M80C.2 for kernel-image-std-def=4.4.86-alt0.M80C.2 is already installed
The following packages will be REMOVED:
  kernel-image-std-def#3:4.4.86-alt0.M80C.2
0 upgraded, 0 newly installed, 1 removed and 0 not upgraded.
Need to get 0B of archives.
After unpacking 50.6MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
[root@localhost .in]# rpm -q apt --lastchange
* Fri May 31 2019 Aleksei Nikiforov <darktemplar@altlinux.org> 0.5.15lorg2-alt53.M80C.2
- Ported https support from Debian via https method to apt-https package.
- Dropped processing Realm name in http/https methods.
[root@localhost .in]# 

The same applies to p8 and Sisyphus:

[root@prodesk /]# apt-get remove kernel-image-un-def=5.0.19-alt1
Reading Package Lists... Done
Building Dependency Tree... Done
Version kernel-image-un-def#1:5.0.19-alt1:sisyphus+230627.100.1.3@1559075615#1:5.0.19-alt1:sisyphus+230627.100.1.3@1559075615 for kernel-image-un-def=5.0.19-alt1 is already installed

...
[root@prodesk /]# rpm -q apt --lastchange
* Ср июн 05 2019 Ivan Zakharyaschev <imz@altlinux.org> 0.5.15lorg2-alt67
- Add disttag to VerStrs (used by APT to identify package versions).

This was noticed by Александр Макеенков. It doesn't affect the correctness of APT's work.