@@ 129,10 129,10 @@ if __name__ == "__main__":
except:
pass
# Get the number of repository
- nb_repo = config.get('global', 'nb-repo')
+ nb_repo = config.get('global', 'nb_repo')
# Create a watcher for each repository
- for i in range(1, int(nb-repo) + 1):
+ for i in range(1, int(nb_repo) + 1):
type_repo = config.get('repo-'+str(i), 'type')
local_url = config.get('repo-'+str(i), 'local_url')
url = config.get('repo-'+str(i), 'url')
@@ 142,5 142,5 @@ if __name__ == "__main__":
# Launch a new thread for the repository to watch
thread = threading.Thread(None, start_watcher, None, (username, password, url, local_url))
- thread.setDaemon(True)
+ #thread.setDaemon(True)
thread.start()
No newline at end of file