commit:     aa264e4ef3c620f2dae3f8b3bccf38574412742c
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  1 21:13:42 2014 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> 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:

Reply via email to