Bug 36890

Summary: double version postfix is printed for allow-duplicated packages when selecting them
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: aptAssignee: Ivan Zakharyaschev <imz>
Status: NEW --- QA Contact: qa-sisyphus
Severity: minor    
Priority: P3 CC: boyarsh, glebfm, imz, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

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.