Fixing bug in dbupdate where it would explode on plugin that is missing MODELS or...
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 16 May 2013 21:56:20 +0000 (16:56 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 16 May 2013 21:56:20 +0000 (16:56 -0500)
commit0ae38290488e39f2b3d0ec1248f0b78a6dceeba6
tree271fa921cea6798a872136fefa143cc25ac49961
parentff97bbe94450c9587b146ab67feadd0b01817acb
Fixing bug in dbupdate where it would explode on plugin that is missing MODELS or MIGRATIONS

The reason it blew up was because in the latter caught exception, it
wouldn't set models/migrations to an empty set, so it would actually
use the previous run's models/migrations!  That's what we get for
"leaky" variables on python for loops :)

This commit sponsored by Pascal Diogo Antunes.  Thank you!
mediagoblin/gmg_commands/dbupdate.py