commit 1f6704e1723ac1e9c29ae25fcd0d1b819e8da8b3
parent af740ad1af19a464f15aecb2345c260f3e8a79d3
Author: cfillion <cfillion@users.noreply.github.com>
Date: Thu, 24 Aug 2017 14:19:54 -0400
do not prompt to uninstall pinned obsolete packages when syncing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/transaction.cpp b/src/transaction.cpp
@@ -71,7 +71,7 @@ void Transaction::synchronize(const Remote &remote,
if(m_config->install.promptObsolete && !remote.isProtected()) {
for(const Registry::Entry &entry : m_registry.getEntries(ri->name())) {
- if(!ri->find(entry.category, entry.package))
+ if(!entry.pinned && !ri->find(entry.category, entry.package))
m_obsolete.insert(entry);
}
}