1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Patch for ticket 67 [1] and bump port revision.

[1] http://erosson.com/migrate/trac/ticket/67

PR:		105982
Submitted by:	Aron Stansvik <elvstone@gmail.com> (maintainer)
This commit is contained in:
Alexander Botero-Lowry 2006-11-29 09:03:03 +00:00
parent 95f709728f
commit 3b8ca2b5dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178236
2 changed files with 19 additions and 1 deletions

View File

@ -7,10 +7,11 @@
PORTNAME= migrate
PORTVERSION= 0.2.1
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= http://cheeseshop.python.org/packages/source/m/migrate/ \
http://dose.se/distfiles/migrate/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= elvstone@gmail.com

View File

@ -0,0 +1,17 @@
--- migrate/versioning/script/script.py.orig Fri Oct 27 05:48:25 2006
+++ migrate/versioning/script/script.py Thu Nov 9 20:01:50 2006
@@ -19,10 +19,11 @@
del sys.path[-1]
return module
-def logsql_engine(func):
+def logsql_engine(func,force=False):
"""migrate.run.migrate_engine is a logengine in the decorated function"""
def entangle(*p,**k):
- migrate.run.migrate_engine = sqlalchemy.create_engine(None,strategy='logsql')
+ if force or (not getattr(migrate.run,'migrate_engine',None)):
+ migrate.run.migrate_engine = sqlalchemy.create_engine(None,strategy='logsql')
reload(migrate)
try:
return func(*p,**k)