aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-11-28 22:25:15 -0500
committerDevan Franchini <twitch153@gentoo.org>2015-11-28 22:25:17 -0500
commit491baec51fabb75160170dbea9b55887b1083773 (patch)
treea41cfb7eddbe738456126bd16bf7fe5ab225030c
parentupdater.py: Adds expected "." to database migration check to ensure proper ba... (diff)
downloadlayman-491baec51fabb75160170dbea9b55887b1083773.tar.gz
layman-491baec51fabb75160170dbea9b55887b1083773.tar.bz2
layman-491baec51fabb75160170dbea9b55887b1083773.zip
updater.py: Sets set_db_type installed var to new_name
Previously the set_db_type function would be passed the old installed database name instead of the new one. This would lead to setting the "installed" variable in the layman config to an incorrect one.
-rw-r--r--layman/updater.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/updater.py b/layman/updater.py
index 6cd98c4..6384429 100644
--- a/layman/updater.py
+++ b/layman/updater.py
@@ -164,7 +164,7 @@ class Main(object):
'to_type': migrate_type}
self.output.info(msg)
- self.set_db_type(migrate_type, os.path.basename(installed))
+ self.set_db_type(migrate_type, os.path.basename(new_name))
msg = ' Warning: Please be sure to update your config file via '\
'the\n `dispatch-conf` command or you *will* lose database '\