r107627 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107626‎ | r107627 | r107628 >
Date:09:46, 30 December 2011
Author:adamw
Status:deferred
Tags:
Comment:
keep dump index in the db/ directory
Modified paths:
  • /trunk/extensions/Offline/indexer.py (modified) (history)

Diff [purge]

Index: trunk/extensions/Offline/indexer.py
@@ -13,6 +13,7 @@
1414 self.base_dir = os.path.dirname(xmlbz2_path)
1515 self.xmlbz2_path = xmlbz2_path
1616 self.splits_dir = self.base_dir
 17+ self.db_dir = os.path.join(self.base_dir, "db")
1718 #self.splits_dir = os.path.join(self.base_dir, "wiki-splits")
1819
1920 def Semaphored(f):
@@ -44,7 +45,7 @@
4546
4647 @Semaphored
4748 def index(self):
48 - db = Db(self.splits_dir)
 49+ db = Db(self.db_dir)
4950 article_title_re = re.compile(' *<title>([^<]+)</title>')
5051 for dirpath, subdirs, files in os.walk(self.splits_dir):
5152 for f in files:

Status & tagging log