From ea783f09c5de117030d1924318daa5d83c78e66d Mon Sep 17 00:00:00 2001 From: guinux Date: Sat, 3 Jun 2017 15:07:37 +0200 Subject: [PATCH] fix #228 --- src/manager_window.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/manager_window.vala b/src/manager_window.vala index 8d4cf27..66c3ebc 100644 --- a/src/manager_window.vala +++ b/src/manager_window.vala @@ -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); }