Skip to content

Commit

Permalink
don't pause for excluded repos & log each repo start
Browse files Browse the repository at this point in the history
  • Loading branch information
robnagler committed Apr 24, 2018
1 parent 8c09db6 commit 01f0199
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pykern/pkcli/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ def __init__(self):
if cfg.test_mode:
if r.name != 'pykern':
continue
elif sleep:
if cfg.exclude_re and cfg.exclude_re.search(r.full_name):
pkdc('exclude: {}', r.full_name)
continue
if sleep:
time.sleep(sleep)
else:
sleep = cfg.api_pause_seconds
pkdlog('{}: begin', r.full_name)
self._repo(r)
self._purge()

Expand All @@ -86,10 +90,6 @@ def _purge(self):

def _repo(self, repo):
fn = repo.full_name
if cfg.exclude_re and cfg.exclude_re.search(fn):
pkdc('exclude: {}', fn)
return
pkdc('backup: {}', fn)
bd = re.sub('/', '-', fn)

def _clone(suffix):
Expand Down

0 comments on commit 01f0199

Please sign in to comment.