public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] Subject: [PATCH 1/2] stagebase.py: strip leading slash from /etc/portage in pjoin
@ 2017-12-28 20:33 Ben Kohler
  0 siblings, 0 replies; only message in thread
From: Ben Kohler @ 2017-12-28 20:33 UTC (permalink / raw
  To: gentoo-catalyst

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

~


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-28 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-28 20:33 [gentoo-catalyst] Subject: [PATCH 1/2] stagebase.py: strip leading slash from /etc/portage in pjoin Ben Kohler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox