Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2006 23:27:03 GMT
From:      Aron Stansvik<elvstone@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/105982: Update databases/py-migrate
Message-ID:  <200611282327.kASNR3GC014795@www.freebsd.org>
Resent-Message-ID: <200611282330.kASNUBjQ021473@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105982
>Category:       ports
>Synopsis:       Update databases/py-migrate
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 28 23:30:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Aron Stansvik
>Release:        6.1-STABLE
>Organization:
>Environment:
FreeBSD rubik.dose.se 6.1-STABLE FreeBSD 6.1-STABLE #1: Tue Aug 29 13:14:06 CEST 2006     elvis@rubik.dose.se:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Patch for ticket 67 [1] and bump port revision.

[1] http://erosson.com/migrate/trac/ticket/67
>How-To-Repeat:

>Fix:
--- Makefile.orig       Wed Nov 29 00:21:16 2006
+++ Makefile    Wed Nov 29 00:21:27 2006
@@ -7,6 +7,7 @@

 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/

Patch attached with submission follows:

--- 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)

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611282327.kASNR3GC014795>