Modify

Ticket #35 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

get_migration_names(app) returns too many files on mac (bc of hidden files)

Reported by: michael@… Owned by: andrew
Priority: minor Milestone:
Component: migrations Version: 0.6-pre
Keywords: Cc:

Description

after writing a deploy script which moves all of the files to the server and then runs migrations i encountered a problem with the files created on mac which starts with ._

On mac the os functions takes care of it, but when moving the files to linux using tar for instance, these files will show up when get_migration_names(app) traverses the folder.

The solution is pretty simple: change line 61 in migration.py from

 if filename.endswith(".py") and filename != "__init__.py"

to

 if filename.endswith(".py") and filename != "__init__.py" and not filename.startswith('.')

Attachments

Change History

comment:1 Changed 6 years ago by andrew

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

Good point; I've added this in [85].

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.