From: "Brian Dolbec" <brian.dolbec@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:3.0 commit in: catalyst/, catalyst/base/
Date: Wed, 22 Jan 2014 05:04:12 +0000 (UTC) [thread overview]
Message-ID: <1390364929.a6e39695fec360dce3612e8b3f00ff0cc9fec4d0.dol-sen@gentoo> (raw)
commit: a6e39695fec360dce3612e8b3f00ff0cc9fec4d0
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 22 04:07:20 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Wed Jan 22 04:28:49 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=a6e39695
Rename target_mounts, devpts and sort members.
---
catalyst/base/stagebase.py | 8 +++++---
catalyst/defaults.py | 14 +++++++-------
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index f42d943..fd7fda5 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -13,11 +13,12 @@ from catalyst.support import (CatalystError, msg, file_locate, normpath,
from catalyst.base.targetbase import TargetBase
from catalyst.base.clearbase import ClearBase
from catalyst.base.genbase import GenBase
-from catalyst.defaults import target_mounts
+from catalyst.defaults import TARGET_MOUNT_DEFAULTS
from catalyst.lock import LockDir
from catalyst.fileops import ensure_dirs, pjoin
from catalyst.base.resume import AutoResume
+
class StageBase(TargetBase, ClearBase, GenBase):
"""
This class does all of the chroot setup, copying of files, etc. It is
@@ -191,7 +192,8 @@ class StageBase(TargetBase, ClearBase, GenBase):
file_locate(self.settings,["portage_confdir"],expand=0)
""" Setup our mount points """
- self.target_mounts = target_mounts.copy()
+ # initialize our target mounts.
+ self.target_mounts = TARGET_MOUNT_DEFAULTS.copy()
if "snapcache" in self.settings["options"]:
self.mounts=["proc", "dev", 'portdir', 'distdir', 'port_tmpdir']
self.mountmap={"proc":"/proc", "dev":"/dev", "pts":"/dev/pts",
@@ -202,7 +204,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
self.mountmap={"proc":"/proc", "dev":"/dev", "pts":"/dev/pts",
"distdir":self.settings["distdir"], "port_tmpdir":"tmpfs"}
if os.uname()[0] == "Linux":
- self.mounts.append("pts")
+ self.mounts.append("devpts")
self.set_mounts()
diff --git a/catalyst/defaults.py b/catalyst/defaults.py
index 0b98d83..11cecb3 100644
--- a/catalyst/defaults.py
+++ b/catalyst/defaults.py
@@ -80,18 +80,18 @@ confdefaults={
}
-target_mounts = {
- "proc": "/proc",
+TARGET_MOUNT_DEFAULTS = {
+ "ccache": "/var/tmp/ccache",
"dev": "/dev",
- "pts": "/dev/pts",
- "portdir": "/usr/portage",
+ "devpts": "/dev/pts",
"distdir": "/usr/portage/distfiles",
+ "icecream": "/usr/lib/icecc/bin",
+ "kerncache": "/tmp/kerncache",
"packagedir": "/usr/portage/packages",
+ "portdir": "/usr/portage",
"port_tmpdir": "/var/tmp/portage",
- "kerncache": "/tmp/kerncache",
- "ccache": "/var/tmp/ccache",
- "icecream": "/var/cache/icecream",
"port_logdir": "/var/log/portage",
+ "proc": "/proc",
}
# legend: key: message
next reply other threads:[~2014-01-22 5:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-22 5:04 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-04-18 16:52 [gentoo-commits] proj/catalyst:3.0 commit in: catalyst/, catalyst/base/ Brian Dolbec
2014-04-18 16:52 Brian Dolbec
2014-04-18 16:52 Brian Dolbec
2014-04-18 16:52 Brian Dolbec
2014-01-22 5:04 Brian Dolbec
2014-01-22 5:04 Brian Dolbec
2014-01-22 5:04 Brian Dolbec
2014-01-22 5:04 Brian Dolbec
2014-01-22 5:04 Brian Dolbec
2013-12-31 10:48 Brian Dolbec
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=1390364929.a6e39695fec360dce3612e8b3f00ff0cc9fec4d0.dol-sen@gentoo \
--to=brian.dolbec@gmail.com \
--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