зеркало из https://github.com/mozilla/gecko-dev.git
Bug 457113: source files altered when building with symlinked chrome; r=pike
This commit is contained in:
Родитель
d326d65b0d
Коммит
4dfc73d1b9
|
@ -380,6 +380,12 @@ class JarMaker(object):
|
|||
return getModTime(os.path.join(self.basepath, aPath))
|
||||
def getOutput(self, name):
|
||||
out = self.ensureDirFor(name)
|
||||
# remove previous link or file
|
||||
try:
|
||||
os.remove(out)
|
||||
except OSError, e:
|
||||
if e.errno != 2:
|
||||
raise
|
||||
return open(out, 'wb')
|
||||
def ensureDirFor(self, name):
|
||||
out = os.path.join(self.basepath, name)
|
||||
|
|
Загрузка…
Ссылка в новой задаче