ostbuild: Use .lastfetch file per branch
This way we don't try to update gtk+ twice, once for gtk master and once for gtk-2-22.
This commit is contained in:
parent
cf0c2016de
commit
92891e60ca
|
|
@ -100,7 +100,8 @@ def ensure_vcs_mirror(mirrordir, keytype, uri, branch):
|
||||||
os.rename(tmp_mirror, mirror)
|
os.rename(tmp_mirror, mirror)
|
||||||
if branch is None:
|
if branch is None:
|
||||||
return mirror
|
return mirror
|
||||||
last_fetch_path = mirror + '.lastfetch'
|
branch_safename = branch.replace('/','_').replace('.', '_')
|
||||||
|
last_fetch_path = mirror + '.lastfetch-%s' % (branch_safename, )
|
||||||
if os.path.exists(last_fetch_path):
|
if os.path.exists(last_fetch_path):
|
||||||
f = open(last_fetch_path)
|
f = open(last_fetch_path)
|
||||||
last_fetch_contents = f.read()
|
last_fetch_contents = f.read()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue