commit: 491baec51fabb75160170dbea9b55887b1083773
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 03:25:15 2015 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Sun Nov 29 03:25:17 2015 +0000
URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=491baec5
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.
layman/updater.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 '\