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 D4D5013877A for ; Fri, 27 Jun 2014 04:08:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57CD0E0B00; Fri, 27 Jun 2014 04:07:54 +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 B1DF3E0B03 for ; Fri, 27 Jun 2014 04:07:53 +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 DCBD834016C for ; Fri, 27 Jun 2014 04:07:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 2C35119190 for ; Fri, 27 Jun 2014 04:07:50 +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: <1403149798.a1f6aa1a73fbaef1d7398003897dab46f58f66d4.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:gsoc2014 commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/reposconf.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: a1f6aa1a73fbaef1d7398003897dab46f58f66d4 X-VCS-Branch: gsoc2014 Date: Fri, 27 Jun 2014 04:07:50 +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: b0cc2632-a12a-4d85-8a20-fc48afff2a62 X-Archives-Hash: 3458db616cd90f36919555fe1a800785 commit: a1f6aa1a73fbaef1d7398003897dab46f58f66d4 Author: Devan Franchini gentoo org> AuthorDate: Tue Jun 17 21:46:57 2014 +0000 Commit: Devan Franchini gentoo org> CommitDate: Thu Jun 19 03:49:58 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=a1f6aa1a reposconf.py: Adds sync-type checking --- layman/reposconf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/layman/reposconf.py b/layman/reposconf.py index c550a13..b93ee42 100644 --- a/layman/reposconf.py +++ b/layman/reposconf.py @@ -24,6 +24,12 @@ except: # Import for Python2 import ConfigParser +try: + from portage.sync.modules import layman_ + sync_type = "layman" +except ImportError: + sync_type = "None" + from layman.compatibility import fileopen from layman.utils import path @@ -81,6 +87,7 @@ class ConfigHandler: self.repo_conf.add_section(overlay.name) self.repo_conf.set(overlay.name, 'priority', str(overlay.priority)) self.repo_conf.set(overlay.name, 'location', path((self.storage, overlay.name))) + self.repo_conf.set(overlay.name, 'sync-type', sync_type) self.repo_conf.set(overlay.name, 'sync-uri', overlay.sources[0].src) self.repo_conf.set(overlay.name, 'auto-sync', self.config['auto_sync'])