commit c5f47bb938b004ede4f3d0576d964c679e6409d7
parent 922dfc801820fe0564a9aa623330e1e421d6386b
Author: cfillion <cfillion@users.noreply.github.com>
Date: Wed, 8 Feb 2017 17:53:43 -0500
transaction: don't propose to uninstall obsolete packages from protected repos
(eg. ReaPack on Linux when there are no Linux build in the index)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/transaction.cpp b/src/transaction.cpp
@@ -75,7 +75,7 @@ void Transaction::synchronize(const Remote &remote,
for(const Package *pkg : ri->packages())
synchronize(pkg, opts);
- if(m_config->install.promptObsolete) {
+ if(m_config->install.promptObsolete && !remote.isProtected()) {
for(const Registry::Entry &entry : m_registry.getEntries(ri->name())) {
if(!ri->find(entry.category, entry.package))
m_obsolete.insert(entry);