logo       

runner.py change: msg#00003

python.buildbot.devel

Subject: runner.py change


I moved the chmod after the copy because if the makefile is read only
this failed (e.g. if you have it in version control, locked). Moving the
chmod here (from the end) removes the read only flag and allows the file
append.

Scripts/runner.py:63

def makefile(self, source, cmd):
target = "Makefile"
if os.path.exists(target):
print "not touching existing Makefile"
print "installing sample in Makefile.sample instead"
target = "Makefile.sample"
shutil.copy(source, target)
os.chmod(target, 0600) <<<<<<<<<
f = open(target, "a")
f.write("\n")
f.write("tap:\n")
f.write("\t" + cmd + "\n")
f.write("\n")
f.close()


Nick



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise