Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb17c3d5

Browse files
committed
fix: reduce EAPI helpers paths to just what's unique.
The previous code stacked each level of inheritance on, resultingin many duplicates; path look chooses leftmost, thus filterit down so a directory is only listed once, in the order itwas first exposed.Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent2e8c66a commitb17c3d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/pkgcore/ebuild/eapi.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
fromsnakeoil.mappingsimportImmutableDict,OrderedFrozenSet,inject_getitem_as_getattr
1313
fromsnakeoil.osutilsimportpjoin
1414
fromsnakeoil.process.spawnimportbash_version
15+
fromsnakeoil.sequencesimportstable_unique
1516

1617
LATEST_PMS_EAPI_VER="9"
1718

@@ -465,7 +466,7 @@ def helpers(self):
465466
paths[phase].append(dirpath)
466467
else:
467468
raiseValueError(f"unknown phase:{phase!r}")
468-
returnImmutableDict((k,tuple(v))fork,vinpaths.items())
469+
returnImmutableDict((k,tuple(stable_unique(v)))fork,vinpaths.items())
469470

470471
@klass.jit_attr
471472
defebd_env(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp