Edgewall Software
Modify

Opened 19 years ago

Closed 17 years ago

#111 closed defect (wontfix)

os.chmod locks bz2 file on windows

Reported by: anonymous Owned by: cmlenz
Priority: major Milestone:
Component: Build slave Version: 0.5.2
Keywords: os.remove, file locked Cc:
Operating System: Windows

Description

In slave.py, os.remove(archive_path) was giving me a "Permission denied" error on windows. After some trial and error, commenting out the os.chmod(archive_path, 0400):

            archive_file = file(archive_path, 'wb')
            try:
                shutil.copyfileobj(payload.body, archive_file)
            finally:
                archive_file.close()
            # os.chmod(archive_path, 0400)

Let os.remove(archive_path) work just fine.

Obviously just commenting it out isn't the best solution--but just a heads up that on Windows its either not needed or should be un-chmod'd or something to let the file get deleted nicely.

Attachments (0)

Change History (2)

comment:1 Changed 18 years ago by Angel Marin <anmar@…>

This no longer happens with trunk code, time to close the ticket?

comment:2 Changed 17 years ago by cmlenz

  • Resolution set to wontfix
  • Status changed from new to closed

This code won't even be used anymore as soon as the HTTP branch is merged, so I'm closing this.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.