From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 17E411388C1 for ; Sun, 29 Nov 2015 03:12:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 209F121C001; Sun, 29 Nov 2015 03:12:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 875B921C001 for ; Sun, 29 Nov 2015 03:12:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B37D3406F2 for ; Sun, 29 Nov 2015 03:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3AAEBA86 for ; Sun, 29 Nov 2015 03:12:33 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1448766722.c8f2cda02daf9752e0c169db2051ee33a4e1f9d7.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/updater.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: c8f2cda02daf9752e0c169db2051ee33a4e1f9d7 X-VCS-Branch: master Date: Sun, 29 Nov 2015 03:12:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fdf1c265-ea91-442d-85e0-3e53040e759a X-Archives-Hash: d1479ff449dc686dda825d7a4d5368e9 commit: c8f2cda02daf9752e0c169db2051ee33a4e1f9d7 Author: Devan Franchini gentoo org> AuthorDate: Sun Nov 29 03:11:59 2015 +0000 Commit: Devan Franchini gentoo 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')