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 288FE138A2F for ; Fri, 15 Aug 2014 22:32:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4A37E0ADB; Fri, 15 Aug 2014 22:32:43 +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 07E07E0AD0 for ; Fri, 15 Aug 2014 22:32:41 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F12AD340604 for ; Fri, 15 Aug 2014 22:32:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 1FD9418830 for ; Fri, 15 Aug 2014 22:32:38 +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: <1408138962.aa264e4ef3c620f2dae3f8b3bccf38574412742c.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:gsoc2014 commit in: layman/overlays/ X-VCS-Repository: proj/layman X-VCS-Files: layman/overlays/overlay.py X-VCS-Directories: layman/overlays/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: aa264e4ef3c620f2dae3f8b3bccf38574412742c X-VCS-Branch: gsoc2014 Date: Fri, 15 Aug 2014 22:32:38 +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: ad98a4de-e9ba-41ec-be97-7217ca66be96 X-Archives-Hash: 56ba628693367e140f9bb22d6571dd86 commit: aa264e4ef3c620f2dae3f8b3bccf38574412742c Author: Devan Franchini gentoo org> AuthorDate: Fri Aug 1 21:13:42 2014 +0000 Commit: Devan Franchini gentoo org> CommitDate: Fri Aug 15 21:42:42 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=aa264e4e overlay.py: Adds self.ovl_type To allow a stub function to tell the user the current overlay type of the unsupported overlay, this variable will be passed in along with the parent variable. --- layman/overlays/overlay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py index ee2c279..bc57e2e 100755 --- a/layman/overlays/overlay.py +++ b/layman/overlays/overlay.py @@ -101,6 +101,7 @@ class Overlay(object): def create_overlay_source(source_elem): _branch = '' _type = source_elem.attrib['type'] + self.ovl_type = _type if 'branch' in source_elem.attrib: _branch = source_elem.attrib['branch'] @@ -215,6 +216,7 @@ class Overlay(object): def create_dict_overlay_source(source_): _src, _type, _sub = source_ + self.ovl_type = _type try: _class = self.module_controller.get_class(_type) except InvalidModuleName: