Also refresh databases without any packages at all
This commit is contained in:
parent
6916bbffcc
commit
42c50f7cd5
|
@ -713,7 +713,7 @@ void Manager::updateAlpmDatabases()
|
||||||
}
|
}
|
||||||
for(auto &syncDb : m_syncDbs) {
|
for(auto &syncDb : m_syncDbs) {
|
||||||
QReadLocker locker(syncDb->lock());
|
QReadLocker locker(syncDb->lock());
|
||||||
if(syncDb->hasOutdatedPackages()) {
|
if(syncDb->packages().empty() || syncDb->hasOutdatedPackages()) {
|
||||||
locker.unlock();
|
locker.unlock();
|
||||||
syncDb->refresh(m_config.storageDir() + QStringLiteral("/sync"));
|
syncDb->refresh(m_config.storageDir() + QStringLiteral("/sync"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue