Ticket #35 (closed defect: fixed)

Opened 7 years ago

Last modified 7 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:


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"


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

Change History

comment:1 Changed 7 years ago by andrew

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

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

Note: See TracTickets for help on using tickets.