From: Ben Kohler <bkohler@gmail.com>
To: gentoo-catalyst@lists.gentoo.org
Subject: [gentoo-catalyst] Patches for stagebase.py
Date: Thu, 28 Dec 2017 15:08:25 -0600 [thread overview]
Message-ID: <CANSUr=J-ONPYkh2i6EZYryD6hPWLdUmD9_=NmsOzwGn5LVUoGg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 74 bytes --]
Sorry about formatting of previous patches, here they are attached.
-Ben
[-- Attachment #2: 0002-stagebase.py-add-package.accept_keywords-to-cleanup-.patch --]
[-- Type: text/x-patch, Size: 958 bytes --]
From 8363bbfa77d6658ccb823c638166b6f5c77f61b8 Mon Sep 17 00:00:00 2001
From: Ben Kohler <bkohler@gmail.com>
Date: Thu, 28 Dec 2017 14:19:09 -0600
Subject: [PATCH 2/2] stagebase.py: add package.accept_keywords to cleanup list
---
catalyst/base/stagebase.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 999bf8df..3c60783b 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1217,7 +1217,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
# optionally clean up portage configs
if ("portage_prefix" in self.settings and
"sticky-config" not in self.settings["options"]):
- for _dir in "keywords", "mask", "unmask", "use":
+ for _dir in "accept_keywords", "keywords", "mask", "unmask", "use":
target = pjoin([self.settings['chroot_path'],
"etc/portage/package.%s" % _dir,
self.settings["portage_prefix"]])
--
2.13.6
[-- Attachment #3: 0001-stagebase.py-strip-leading-slash-from-etc-portage-in.patch --]
[-- Type: text/x-patch, Size: 1041 bytes --]
From 10a0c31b5a839cc4759736c054e2ffea2aab1708 Mon Sep 17 00:00:00 2001
From: Ben Kohler <bkohler@gmail.com>
Date: Thu, 28 Dec 2017 14:18:37 -0600
Subject: [PATCH 1/2] stagebase.py: strip leading slash from /etc/portage in
pjoin
Only the first component passed to pjoin can have a leading slash,
otherwise the component will be treated as an absolute path and all
preceding components are discarded.
---
catalyst/base/stagebase.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index a6a32f5a..999bf8df 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1219,7 +1219,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
"sticky-config" not in self.settings["options"]):
for _dir in "keywords", "mask", "unmask", "use":
target = pjoin([self.settings['chroot_path'],
- "/etc/portage/package.%s" % _dir,
+ "etc/portage/package.%s" % _dir,
self.settings["portage_prefix"]])
clear_path(target)
--
2.13.6
next reply other threads:[~2017-12-28 21:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-28 21:08 Ben Kohler [this message]
2017-12-29 0:48 ` [gentoo-catalyst] Patches for stagebase.py 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='CANSUr=J-ONPYkh2i6EZYryD6hPWLdUmD9_=NmsOzwGn5LVUoGg@mail.gmail.com' \
--to=bkohler@gmail.com \
--cc=gentoo-catalyst@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