Also refresh databases without any packages at all

This commit is contained in:
Martchus 2018-09-29 11:39:39 +02:00
parent 6916bbffcc
commit 42c50f7cd5
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ void Manager::updateAlpmDatabases()
}
for(auto &syncDb : m_syncDbs) {
QReadLocker locker(syncDb->lock());
if(syncDb->hasOutdatedPackages()) {
if(syncDb->packages().empty() || syncDb->hasOutdatedPackages()) {
locker.unlock();
syncDb->refresh(m_config.storageDir() + QStringLiteral("/sync"));
}