This commit is contained in:
guinux 2017-06-03 15:07:37 +02:00
parent bd81be2659
commit ea783f09c5
1 changed files with 6 additions and 1 deletions

View File

@ -532,7 +532,12 @@ namespace Pamac {
transaction.get_aur_details.begin (details.name, (obj, res) => {
AURPackageDetails aur_details = transaction.get_aur_details.end (res);
if (aur_details.name != "") {
if (aur_details.version == details.version) {
// always show reinstall button for VCS package
if (aur_details.name.has_suffix ("-git") ||
aur_details.name.has_suffix ("-svn") ||
aur_details.name.has_suffix ("-bzr") ||
aur_details.name.has_suffix ("-hg") ||
aur_details.version == details.version) {
reinstall_togglebutton.visible = true;
reinstall_togglebutton.active = transaction.to_build.contains (details.name);
}