Skip to content

Commit

Permalink
Move check to top
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozan Çağlayan committed Mar 31, 2011
1 parent eabfb42 commit 230809e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildfarm/releasecache.py
Expand Up @@ -28,13 +28,14 @@ class ReleaseCache(object):
def __init__(self):
self.d = {}

if not conf.basedeltarelease:
return

# Final local index that should exist
local_index = os.path.join(conf.buildfarmdir, "index-%s.xml" % conf.basedeltarelease)

if not os.path.exists(local_index):
remote_index = utils.get_remote_tags_repository_index_url()
if not remote_index:
return
try:
index_file = pisi.file.File(remote_index,
mode=pisi.file.File.read,
Expand Down

0 comments on commit 230809e

Please sign in to comment.