public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] proj/layman:master commit in: layman/
@ 2015-11-29  3:12 99% Devan Franchini
  0 siblings, 0 replies; 1+ results
From: Devan Franchini @ 2015-11-29  3:12 UTC (permalink / raw
  To: gentoo-commits

commit:     c8f2cda02daf9752e0c169db2051ee33a4e1f9d7
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 03:11:59 2015 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Sun Nov 29 03:12:02 2015 +0000
URL:        https://gitweb.gentoo.org/proj/layman.git/commit/?id=c8f2cda0

updater.py: Adds expected "." to database migration check to ensure proper backup naming

 layman/updater.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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')
 


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-11-29  3:12 99% [gentoo-commits] proj/layman:master commit in: layman/ Devan Franchini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox