Changeset - 6ca4f9f68eb5
[Not reviewed]
default
0 2 0
Mads Kiilerich - 8 years ago 2017-08-12 17:40:01
mads@kiilerich.com
make-index: move make_index.lock to the index location - don't assume that the .ini directory is writable
2 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/make_index.py
Show inline comments
 
@@ -57,8 +57,7 @@ class Command(BasePasterCommand):
 
        from kallithea.lib.pidlock import LockHeld, DaemonLock
 
        from kallithea.lib.indexers.daemon import WhooshIndexingDaemon
 
        try:
 
            l = DaemonLock(file_=os.path.join(dirname(dirname(index_location)),
 
                                              'make_index.lock'))
 
            l = DaemonLock(file_=os.path.join(index_location, 'make_index.lock'))
 
            WhooshIndexingDaemon(index_location=index_location,
 
                                 repo_location=repo_location,
 
                                 repo_list=repo_list,
kallithea/tests/fixture.py
Show inline comments
 
@@ -411,7 +411,7 @@ def create_test_index(repo_location, con
 
    if not os.path.exists(index_location):
 
        os.makedirs(index_location)
 

	
 
    l = DaemonLock(file_=os.path.join(dirname(index_location), 'make_index.lock'))
 
    l = DaemonLock(file_=os.path.join(index_location, 'make_index.lock'))
 
    WhooshIndexingDaemon(index_location=index_location,
 
                         repo_location=repo_location) \
 
        .run(full_index=full_index)
0 comments (0 inline, 0 general)