Commits

Moises Henriquez committed 7a14a8a

Fixed problem detecting tables

Comments (0)

Files changed (1)

src/vpackager/dbutils.py

         cursor.execute('''select name from sqlite_master where
                 type="table" and name != "sqlite_sequence"''')
         res = cursor.fetchall()
-        if len(res) > 0:
-            return False
-        return True
+        #print ''.join(res)
+        return res[0][0] not in ('queue', 'history')
 
     def _cleanup_history(self):
         """ Make sure all packages that did not finish correctly are marked