public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/layman:gsoc2014 commit in: layman/overlays/modules/g_common/
@ 2014-08-15 22:32 Devan Franchini
  0 siblings, 0 replies; only message in thread
From: Devan Franchini @ 2014-08-15 22:32 UTC (permalink / raw
  To: gentoo-commits

commit:     49b5507b6d95dfefe26ac0a3b1ec629f3f11066f
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 15 21:27:01 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=49b5507b

Removes g-common overlay support

---
 layman/overlays/modules/g_common/__init__.py | 25 --------
 layman/overlays/modules/g_common/g_common.py | 92 ----------------------------
 2 files changed, 117 deletions(-)

diff --git a/layman/overlays/modules/g_common/__init__.py b/layman/overlays/modules/g_common/__init__.py
deleted file mode 100644
index d8ea23d..0000000
--- a/layman/overlays/modules/g_common/__init__.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-'''
-G-Common plug-in module for layman.
-'''
-
-module_spec = {
-    'name': 'g-common',
-    'description': __doc__,
-    'provides':{
-        'g-common-module': {
-            'name': 'g-common',
-            'class': 'GCommonOverlay',
-            'description': __doc__,
-            'functions': ['add', 'supported', 'sync'],
-            'func_desc': {
-                'add': 'Creates the base dir and clones a g_common repository',
-                'supported': 'Confirms if overlay type is supported',
-                'sync': 'Performs a sync of the repository',
-            },
-        }
-    }
-}
-

diff --git a/layman/overlays/modules/g_common/g_common.py b/layman/overlays/modules/g_common/g_common.py
deleted file mode 100644
index 9c5f6b7..0000000
--- a/layman/overlays/modules/g_common/g_common.py
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-#################################################################################
-# LAYMAN G-COMMON OVERLAY HANDLER
-#################################################################################
-# File:       g_common.py
-#
-#             Handles g-common-style repositories
-#
-# Copyright:
-#             (c) 2010 Gentoo Foundation
-#             Distributed under the terms of the GNU General Public License v2
-#
-# Author(s):
-#             Auke Booij <auke@tulcod.com>
-#
-''' G-common repository support.'''
-
-from __future__ import unicode_literals
-
-#===============================================================================
-#
-# Dependencies
-#
-#-------------------------------------------------------------------------------
-
-import os
-from   layman.utils             import path, run_command
-from   layman.overlays.source   import OverlaySource, require_supported
-
-#===============================================================================
-#
-# Class GCommonOverlay
-#
-#-------------------------------------------------------------------------------
-
-class GCommonOverlay(OverlaySource):
-    ''' Handles g-common-style repositories.'''
-
-    type = 'g-common'
-    type_key = 'g-common'
-
-    def __init__(self, parent, config, _location, ignore = 0):
-        super(GCommonOverlay, self).__init__(parent, config,
-            _location, ignore)
-        #split source into driver and remote uri.
-        self.driver=self.src[:self.src.find(' ')]
-        self.remote_uri=self.src[self.src.find(' ')+1:]
-        self.branch = None
-
-    def add(self, base):
-        '''Add overlay.'''
-
-        if not self.supported():
-            return 1
-
-        target = path([base, self.parent.name])
-
-        os.makedirs(target)
-
-        return self.sync(base)
-
-    def sync(self, base):
-        '''Sync overlay.'''
-
-        if not self.supported():
-            return 1
-
-        target = path([base, self.parent.name])
-
-        args = [target, 'sync', self.driver, self.remote_uri]
-        returncode = run_command(self.config, self.command(), args,
-                                 cwd=target)
-        if returncode:
-            return returncode
-        args = [target, 'generate-tree']
-        return self.postsync(
-            run_command(self.config, self.command(), args, cwd=target,
-                        cmd=self.type),
-            cwd=target)
-
-    def supported(self):
-        '''Overlay type supported?'''
-
-        return require_supported(
-            [(self.command(),
-            'g-common',
-            'app-portage/g-common'),
-            ('/usr/share/g-common/drivers/'+self.driver+'.cfg',
-            'g-common for '+self.driver,
-            'app-portage/g-'+self.driver),],
-            self.output.warn)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-15 22:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-15 22:32 [gentoo-commits] proj/layman:gsoc2014 commit in: layman/overlays/modules/g_common/ Devan Franchini

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