From 80fccfd1bf2c90782ba2a8d1edf1ab16afc4c03f Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 11 Apr 2009 17:54:18 +0200 Subject: [PATCH] entropy.db: update databaseStructureUpdates, make it always creating the new "source" column on installedtable if the latter is present --- libraries/entropy/db.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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()