1 |
commit: c8f2cda02daf9752e0c169db2051ee33a4e1f9d7 |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 29 03:11:59 2015 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 29 03:12:02 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=c8f2cda0 |
7 |
|
8 |
updater.py: Adds expected "." to database migration check to ensure proper backup naming |
9 |
|
10 |
layman/updater.py | 2 +- |
11 |
1 file changed, 1 insertion(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/layman/updater.py b/layman/updater.py |
14 |
index 5cef2b0..6cd98c4 100644 |
15 |
--- a/layman/updater.py |
16 |
+++ b/layman/updater.py |
17 |
@@ -124,7 +124,7 @@ class Main(object): |
18 |
installed = self.config['installed'] |
19 |
old_ext = os.path.splitext(installed)[1] |
20 |
backup_name = installed + '.' + self.config['db_type'] |
21 |
- if old_ext == self.config['db_type']: |
22 |
+ if old_ext == "." + self.config['db_type']: |
23 |
backup_name = installed + '.bak' |
24 |
new_name = installed.replace(old_ext, '.db') |