diff options
author | Devan Franchini <twitch153@gentoo.org> | 2015-11-28 22:11:59 -0500 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2015-11-28 22:12:02 -0500 |
commit | c8f2cda02daf9752e0c169db2051ee33a4e1f9d7 (patch) | |
tree | c6e7385ff2d4e744af13dfe69bb504c6e8ebfe60 | |
parent | dbbase.py: Whitespace cleanup (diff) | |
download | layman-c8f2cda02daf9752e0c169db2051ee33a4e1f9d7.tar.gz layman-c8f2cda02daf9752e0c169db2051ee33a4e1f9d7.tar.bz2 layman-c8f2cda02daf9752e0c169db2051ee33a4e1f9d7.zip |
updater.py: Adds expected "." to database migration check to ensure proper backup naming
-rw-r--r-- | layman/updater.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/updater.py b/layman/updater.py index 5cef2b0..6cd98c4 100644 --- a/layman/updater.py +++ b/layman/updater.py @@ -124,7 +124,7 @@ class Main(object): installed = self.config['installed'] old_ext = os.path.splitext(installed)[1] backup_name = installed + '.' + self.config['db_type'] - if old_ext == self.config['db_type']: + if old_ext == "." + self.config['db_type']: backup_name = installed + '.bak' new_name = installed.replace(old_ext, '.db') |