public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Devan Franchini" <twitch153@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/layman:master commit in: layman/config_modules/reposconf/
Date: Thu,  5 Feb 2015 02:56:44 +0000 (UTC)	[thread overview]
Message-ID: <1423104988.894c5faa1565b2abfc6a568a8bc865a85b385e30.twitch153@gentoo> (raw)

commit:     894c5faa1565b2abfc6a568a8bc865a85b385e30
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  5 02:56:28 2015 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Thu Feb  5 02:56:28 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=894c5faa

reposconf.py: Changes sync_type to SYNC_TYPE to reflect global var standards

---
 layman/config_modules/reposconf/reposconf.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/layman/config_modules/reposconf/reposconf.py b/layman/config_modules/reposconf/reposconf.py
index fa75dc6..e61dfe0 100644
--- a/layman/config_modules/reposconf/reposconf.py
+++ b/layman/config_modules/reposconf/reposconf.py
@@ -29,9 +29,9 @@ else:
 
 try:
     from portage.sync.modules import laymanator
-    sync_type = "laymanator"
+    SYNC_TYPE = "laymanator"
 except ImportError:
-    sync_type = None
+    SYNC_TYPE = None
 
 from   layman.compatibility  import fileopen
 from   layman.utils          import path
@@ -91,12 +91,12 @@ class ConfigHandler:
         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, 'layman-type', overlay.sources[0].type_key)
-        if sync_type:
-            self.repo_conf.set(overlay.name, 'sync-type', sync_type)
+        if SYNC_TYPE:
+            self.repo_conf.set(overlay.name, 'sync-type', SYNC_TYPE)
             self.repo_conf.set(overlay.name, 'sync-uri', overlay.sources[0].src)
         if overlay.sources[0].branch:
             self.repo_conf.set(overlay.name, 'branch', overlay.sources[0].branch)
-        if sync_type: #To maintain a desired structure, we have to do this check twice.
+        if SYNC_TYPE: #To maintain a desired structure, we have to do this check twice.
             self.repo_conf.set(overlay.name, 'auto-sync', self.config['auto_sync'])
         else:
             self.repo_conf.set(overlay.name, 'auto-sync', 'No')


             reply	other threads:[~2015-02-05  2:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05  2:56 Devan Franchini [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-04-20 17:12 [gentoo-commits] proj/layman:master commit in: layman/config_modules/reposconf/ Devan Franchini
2015-03-25  1:13 Devan Franchini
2015-03-25  0:44 Devan Franchini
2015-02-17  5:07 Brian Dolbec
2015-02-17  5:07 Brian Dolbec
2015-02-08  3:39 Brian Dolbec
2015-02-08  0:33 Devan Franchini
2015-02-05  2:48 Devan Franchini
2015-02-04 17:58 Devan Franchini
2015-02-04 17:19 Devan Franchini
2015-02-04 17:13 Devan Franchini
2015-02-04 17:13 Devan Franchini
2015-02-03  2:43 Devan Franchini
2015-02-02 23:05 Devan Franchini
2014-12-08  4:15 Devan Franchini
2014-12-03 19:08 Devan Franchini
2014-08-28 22:01 Devan Franchini
2014-08-17 21:17 Devan Franchini
2014-08-19  1:49 ` Devan Franchini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1423104988.894c5faa1565b2abfc6a568a8bc865a85b385e30.twitch153@gentoo \
    --to=twitch153@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox