|
runner.py change: msg#00003python.buildbot.devel
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> |
|---|---|---|
| Previous by Date: | RE: runner: 00003, Nick Trout |
|---|---|
| Next by Date: | Report generation: 00003, Nick Trout |
| Previous by Thread: | runneri: 00003, Nick Trout |
| Next by Thread: | Re: runner.py change: 00003, Brian Warner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |