Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

we should write to cache file when there is no cache file avaliable

  • Loading branch information...
commit fd7f9ee532d9613c32fc1ed8682b1cb42fd59298 1 parent a09d174
Rok Garbas authored July 03, 2011

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  githubcollective/__init__.py
3  githubcollective/__init__.py
@@ -79,7 +79,8 @@ def run():
79 79
     sync_ok = sync.run(new, old)
80 80
 
81 81
     if sync_ok:
82  
-        if args.cache and not args.pretend:
  82
+        if args.cache and \
  83
+           (not args.pretend or not os.path.exists(args.cache)):
83 84
             cache = open(args.cache, 'w+')
84 85
             old.dumps(cache)
85 86
             cache.close()

0 notes on commit fd7f9ee

Please sign in to comment.
Something went wrong with that request. Please try again.