fixed issue 83

This commit is contained in:
wyuenho@gmail.com 2011-10-02 20:09:43 +08:00
parent a1968e7f7d
commit 4cb8fee5ff

View File

@ -212,14 +212,15 @@ def test(url, repository, **opts):
"""
engine = opts.pop('engine')
repos = Repository(repository)
script = repos.version(None).script()
# Upgrade
log.info("Upgrading...")
script = repos.version(None).script(engine.name, 'upgrade')
script.run(engine, 1)
log.info("done")
log.info("Downgrading...")
script = repos.version(None).script(engine.name, 'downgrade')
script.run(engine, -1)
log.info("done")
log.info("Success")