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 895B313888F for ; Sat, 17 Oct 2015 03:20:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A8A821C014; Sat, 17 Oct 2015 03:20:36 +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 475AC21C014 for ; Sat, 17 Oct 2015 03:20:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EF6893408EC for ; Sat, 17 Oct 2015 03:20:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2AD4F10F7 for ; Sat, 17 Oct 2015 03:20:30 +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: <1445051968.909afd209034ec26bca6f8c5d646852b2bd62c3e.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/dbbase.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 909afd209034ec26bca6f8c5d646852b2bd62c3e X-VCS-Branch: master Date: Sat, 17 Oct 2015 03:20:30 +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: 2b2ebab9-528f-4d39-8a17-ee246378e774 X-Archives-Hash: 548386076a072304cb0b06b7c35195e7 commit: 909afd209034ec26bca6f8c5d646852b2bd62c3e Author: Devan Franchini gentoo org> AuthorDate: Sat Oct 17 03:19:25 2015 +0000 Commit: Devan Franchini gentoo org> CommitDate: Sat Oct 17 03:19:28 2015 +0000 URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=909afd20 dbbase.py: Whitespace cleanup Shamelessly hiding the fact that I'm also ammending the lack of self.db_type use in the remove() function. layman/dbbase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layman/dbbase.py b/layman/dbbase.py index ebcd7a4..c2b25b8 100644 --- a/layman/dbbase.py +++ b/layman/dbbase.py @@ -173,8 +173,8 @@ class DbBase(object): self.output.die(msg) return db_ctl - - + + def add_new(self, xml=None, origin=None, from_dict=None): ''' Reads xml text and dictionary definitions and adds @@ -229,7 +229,7 @@ class DbBase(object): ''' Remove an overlay from the database. ''' - db_ctl = self._get_dbctl(db_type) + db_ctl = self._get_dbctl(self.db_type) db_ctl.remove(overlay, path)