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 519E5138A2F for ; Fri, 15 Aug 2014 22:32:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E006AE0AEB; Fri, 15 Aug 2014 22:32:44 +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 4B287E0AD3 for ; Fri, 15 Aug 2014 22:32:42 +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 F3E2B340606 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 3A7351881D 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.49b5507b6d95dfefe26ac0a3b1ec629f3f11066f.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:gsoc2014 commit in: layman/overlays/modules/g_common/ X-VCS-Repository: proj/layman X-VCS-Files: layman/overlays/modules/g_common/__init__.py layman/overlays/modules/g_common/g_common.py X-VCS-Directories: layman/overlays/modules/g_common/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 49b5507b6d95dfefe26ac0a3b1ec629f3f11066f 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: 5a93403a-fc5c-40d7-b8fa-bfed050c8a75 X-Archives-Hash: b74d0e89fe81c3dedf72f3144fad93cc commit: 49b5507b6d95dfefe26ac0a3b1ec629f3f11066f Author: Devan Franchini gentoo org> AuthorDate: Fri Aug 15 21:27:01 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=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 -# -''' 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)