diff --git a/libraries/entropy/db.py b/libraries/entropy/db.py index 8be2ca016..a21aaa9c5 100644 --- a/libraries/entropy/db.py +++ b/libraries/entropy/db.py @@ -3686,10 +3686,9 @@ class LocalRepository: (self.dbname == etpConst['clientdbid']): self.createInstalledTable() - if self.dbname == etpConst['clientdbid']: - if not self.doesColumnInTableExist("installedtable", - "source"): - self.createInstalledTableSource() + if self.doesTableExist("installedtable") and \ + not self.doesColumnInTableExist("installedtable","source"): + self.createInstalledTableSource() if not self.doesTableExist("categoriesdescription"): self.createCategoriesdescriptionTable()