make makefiles leaves devnull files in its wake

Bug #850727 reported by Lawrence Mitchell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fluidity
Fix Released
Low
Tim Greaves

Bug Description

scripts/create_makefile.py does this:

            os.system("rm "+obj+" 2>\\dev\\null || true")
            os.system("rm "+obj+"_dependencies 2>\\dev\\null || true")

which redirects stderr to the file devnull in the current directory.

I propose replacing these lines with

        os.remove(obj)
        os.remove(obj+"_dependencies")

As an added bonus, this is more OS agnostic.

Related branches

Changed in fluidity:
status: New → Fix Committed
assignee: nobody → Lawrence Mitchell (wence)
importance: Undecided → Low
Tim Bond (timothy-bond)
Changed in fluidity:
status: Fix Committed → Fix Released
Changed in fluidity:
status: Fix Released → In Progress
assignee: Lawrence Mitchell (wence) → Tim Greaves (tim-greaves)
Changed in fluidity:
status: In Progress → Fix Committed
Changed in fluidity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.