Gentoo Archives: gentoo-commits

From: Devan Franchini <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/
Date: Sun, 29 Nov 2015 03:26:52
Message-Id: 1448767517.491baec51fabb75160170dbea9b55887b1083773.twitch153@gentoo
1 commit: 491baec51fabb75160170dbea9b55887b1083773
2 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 03:25:15 2015 +0000
4 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 03:25:17 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=491baec5
7
8 updater.py: Sets set_db_type installed var to new_name
9
10 Previously the set_db_type function would be passed the old installed
11 database name instead of the new one. This would lead to setting
12 the "installed" variable in the layman config to an incorrect one.
13
14 layman/updater.py | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/layman/updater.py b/layman/updater.py
18 index 6cd98c4..6384429 100644
19 --- a/layman/updater.py
20 +++ b/layman/updater.py
21 @@ -164,7 +164,7 @@ class Main(object):
22 'to_type': migrate_type}
23 self.output.info(msg)
24
25 - self.set_db_type(migrate_type, os.path.basename(installed))
26 + self.set_db_type(migrate_type, os.path.basename(new_name))
27
28 msg = ' Warning: Please be sure to update your config file via '\
29 'the\n `dispatch-conf` command or you *will* lose database '\