Commit ef40ad0e authored by Matthias Putz's avatar Matthias Putz

removed repo program update + sync is working for single project

parent 7bf91ad2
bin
*.pyc
.repopickle_*
This diff is collapsed.
......@@ -8,6 +8,8 @@ import os
import platform
import subprocess
SYNC_REPO_PROGRAM = False
def isLinux():
if platform.system() == "Windows":
return False
......
......@@ -31,6 +31,7 @@ import xmlrpc
import threading as _threading
#except ImportError:
# import dummy_threading as _threading
import portable
try:
import resource
......@@ -578,13 +579,16 @@ later is required to fix a server side protocol bug.
if not opt.local_only:
to_fetch = []
now = time.time()
if _ONE_DAY_S <= (now - rp.LastFetch):
if portable.SYNC_REPO_PROGRAM and _ONE_DAY_S <= (now - rp.LastFetch):
to_fetch.append(rp)
to_fetch.extend(all_projects)
to_fetch.sort(key=self._fetch_times.Get, reverse=True)
fetched = self._Fetch(to_fetch, opt)
if portable.SYNC_REPO_PROGRAM:
_PostRepoFetch(rp, opt.no_repo_verify)
if opt.network_only:
# bail out now; the rest touches the working tree
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment