Hello community,

here is the log from the commit of package kajongg for openSUSE:Factory checked 
in at 2014-04-18 11:32:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kajongg (Old)
 and      /work/SRC/openSUSE:Factory/.kajongg.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kajongg"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kajongg/kajongg.changes  2014-03-30 
11:59:49.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kajongg.new/kajongg.changes     2014-04-18 
12:33:43.000000000 +0200
@@ -1,0 +2,7 @@
+Fri Apr 11 17:12:59 UTC 2014 - tittiatc...@gmail.com
+
+- Update to 4.13.0
+   * KDE 4.13  release
+   * See http://www.kde.org/announcements/4.13/
+
+-------------------------------------------------------------------

Old:
----
  kajongg-4.12.97.tar.xz

New:
----
  kajongg-4.13.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kajongg.spec ++++++
--- /var/tmp/diff_new_pack.sv6gX5/_old  2014-04-18 12:33:45.000000000 +0200
+++ /var/tmp/diff_new_pack.sv6gX5/_new  2014-04-18 12:33:45.000000000 +0200
@@ -25,7 +25,7 @@
 License:        GPL-2.0+
 Group:          Amusements/Games/Board/Puzzle
 Url:            http://www.kde.org
-Version:        4.12.97
+Version:        4.13.0
 Release:        0
 Source0:        kajongg-%{version}.tar.xz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ kajongg-4.12.97.tar.xz -> kajongg-4.13.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kajongg-4.12.97/kajongg.desktop 
new/kajongg-4.13.0/kajongg.desktop
--- old/kajongg-4.12.97/kajongg.desktop 2014-03-18 06:05:19.000000000 +0100
+++ new/kajongg-4.13.0/kajongg.desktop  2014-04-08 11:03:48.000000000 +0200
@@ -28,6 +28,7 @@
 Name[nds]=Kajongg
 Name[nl]=Kajongg
 Name[nn]=Kajongg
+Name[pa]=ਕੇ-ਮਹਿਜੋਂਗ
 Name[pl]=Kajongg
 Name[pt]=Kajongg
 Name[pt_BR]=Kajongg
@@ -116,6 +117,7 @@
 GenericName[nds]=Mah Jongg
 GenericName[nl]=Mah Jongg
 GenericName[nn]=Mahjong
+GenericName[pa]=ਮਹਿ ਜੋਂਗ
 GenericName[pl]=Mah Jongg
 GenericName[pt]=Mah Jongg
 GenericName[pt_BR]=Mah Jongg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kajongg-4.12.97/src/kde.py 
new/kajongg-4.13.0/src/kde.py
--- old/kajongg-4.12.97/src/kde.py      2014-03-18 06:05:19.000000000 +0100
+++ new/kajongg-4.13.0/src/kde.py       2014-04-08 11:03:48.000000000 +0200
@@ -51,6 +51,7 @@
 
 def appdataDir():
     """the per user directory with kajongg application information like the 
database"""
+    serverDir = os.path.expanduser('~/.kajonggserver/')
     if Internal.isServer:
         # the server might or might not have KDE installed, so to be on
         # the safe side we use our own .kajonggserver directory
@@ -60,18 +61,20 @@
         oldPath = os.path.expanduser(kdehome + 
'/share/apps/kajongg/kajonggserver.db')
         if not os.path.exists(oldPath):
             oldPath = 
os.path.expanduser('~/.kde4/share/apps/kajongg/kajonggserver.db')
-        newPath = os.path.expanduser('~/.kajonggserver/')
-        if os.path.exists(oldPath) and not os.path.exists(newPath):
+        if os.path.exists(oldPath) and not os.path.exists(serverDir):
             # upgrading an old kajonggserver installation
-            os.makedirs(newPath)
-            shutil.move(oldPath, newPath)
-        if not os.path.exists(newPath):
+            os.makedirs(serverDir)
+            shutil.move(oldPath, serverDir)
+        if not os.path.exists(serverDir):
             try:
-                os.makedirs(newPath)
+                os.makedirs(serverDir)
             except OSError:
                 pass
-        return newPath
+        return serverDir
     else:
+        if not os.path.exists(serverDir):
+            # the client wants to place the socket in serverDir
+            os.makedirs(serverDir)
         result = os.path.dirname(unicode(KGlobal.dirs().locateLocal("appdata", 
""))) + '/'
         return result
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kajongg-4.12.97/src/query.py 
new/kajongg-4.13.0/src/query.py
--- old/kajongg-4.12.97/src/query.py    2014-03-18 06:05:19.000000000 +0100
+++ new/kajongg-4.13.0/src/query.py     2014-04-08 11:03:48.000000000 +0200
@@ -306,7 +306,8 @@
                 player integer,
                 password text"""
     schema['general'] = """
-                ident text"""
+                ident text,
+                schemaversion text"""
 
     def __init__(self, path):
         self.path = path
@@ -322,6 +323,7 @@
         try:
             with Internal.db:
                 self.createTables()
+                Query('UPDATE general SET schemaversion=?', 
(Internal.version,))
                 self.__generateDbIdent()
         finally:
             Internal.db.close(silent=True)
@@ -385,9 +387,12 @@
     @classmethod
     def createTables(cls):
         """creates empty tables"""
-        for table in ['player', 'game', 'score', 'ruleset', 'rule']:
+        for table in ['player', 'game', 'score', 'ruleset', 'rule', 'general']:
             cls.createTable(table)
         cls.createIndex('idxgame', 'score(game)')
+        # this makes finding suspended games much faster in the presence
+        # of many test games (with autoplay=1)
+        cls.createIndex('idxautoplay', 'game(autoplay)')
 
         if Internal.isServer:
             Query('ALTER TABLE player add password text')
@@ -533,9 +538,9 @@
         self.removeUsedRuleset()
         self.stopGamesWithRegex()
 
-    def __generateDbIdent(self):
+    @staticmethod
+    def __generateDbIdent():
         """make sure the database has a unique ident and get it"""
-        self.createTable('general')
         records = Query('select ident from general').records
         assert len(records) < 2
         if not records:

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to