[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58129: 29.0.50; [PATCH] Fix (package-update) always install package
From: |
lin Sun |
Subject: |
bug#58129: 29.0.50; [PATCH] Fix (package-update) always install package due to invalid version comparison |
Date: |
Tue, 27 Sep 2022 22:23:53 +0000 |
The function (package-update) should do nothing if the package already
is the latest one; but it actually always installs the package.
The issue comes from the version comparison in function
(package--updateable-packages).
In function (package--updateable-packages), it will compare the
priority versions for the achieved package and the available package,
but the archived package has NO priority version, and the will get
default 0 as its priority version, then the version comparison gets
wrong results.
This patch will fix the issue, please help to review it. Thanks.
Best Regards
Lin
0001-Fix-package-update-always-install-package-due-to-inv.patch
Description: Text Data