Skip to content

Commit

Permalink
we should write to cache file when there is no cache file avaliable
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Jul 3, 2011
1 parent a09d174 commit fd7f9ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion githubcollective/__init__.py
Expand Up @@ -79,7 +79,8 @@ def run():
sync_ok = sync.run(new, old)

if sync_ok:
if args.cache and not args.pretend:
if args.cache and \
(not args.pretend or not os.path.exists(args.cache)):
cache = open(args.cache, 'w+')
old.dumps(cache)
cache.close()
Expand Down

0 comments on commit fd7f9ee

Please sign in to comment.