mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-14 15:12:03 +01:00
overlay coreos/user-patches: Refresh patch for app-portage/gentoolkit
This commit is contained in:
parent
6524396422
commit
a2e2ffea16
@ -1,4 +1,4 @@
|
||||
From e40cd8c76bee4f7c108c1066d60aaf5d8c3adede Mon Sep 17 00:00:00 2001
|
||||
From b8396c72055ecc90b1a0e824b517a50cee9a843c Mon Sep 17 00:00:00 2001
|
||||
From: Krzesimir Nowak <knowak@microsoft.com>
|
||||
Date: Thu, 8 Dec 2022 16:25:39 +0100
|
||||
Subject: [PATCH] profile: Default to main repo name
|
||||
@ -11,19 +11,19 @@ Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
|
||||
Closes: https://github.com/gentoo/gentoolkit/pull/24
|
||||
Signed-off-by: Sam James <sam@gentoo.org>
|
||||
---
|
||||
pym/gentoolkit/profile.py | 13 ++++++++++---
|
||||
1 file changed, 10 insertions(+), 3 deletions(-)
|
||||
pym/gentoolkit/profile.py | 15 ++++++++++-----
|
||||
1 file changed, 10 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/pym/gentoolkit/profile.py b/pym/gentoolkit/profile.py
|
||||
index dcd02cc..c880137 100644
|
||||
index f6943be..7469138 100644
|
||||
--- a/pym/gentoolkit/profile.py
|
||||
+++ b/pym/gentoolkit/profile.py
|
||||
@@ -23,19 +23,26 @@ def warning(msg):
|
||||
print('warning: %s' % msg, file=sys.stderr)
|
||||
@@ -21,21 +21,26 @@ def warning(msg):
|
||||
print("warning: %s" % msg, file=sys.stderr)
|
||||
|
||||
|
||||
-def load_profile_data(portdir=None, repo='gentoo'):
|
||||
+def load_profile_data(portdir=None, repo=''):
|
||||
-def load_profile_data(portdir=None, repo="gentoo"):
|
||||
+def load_profile_data(portdir=None, repo=""):
|
||||
"""Load the list of known arches from the tree
|
||||
|
||||
Args:
|
||||
@ -36,7 +36,9 @@ index dcd02cc..c880137 100644
|
||||
{'x86': ('stable', 'arch'), 'mips': ('dev', '~arch'), ...}
|
||||
"""
|
||||
if portdir is None:
|
||||
- portdir = portage.db[portage.root]['vartree'].settings.repositories[repo].location
|
||||
- portdir = (
|
||||
- portage.db[portage.root]["vartree"].settings.repositories[repo].location
|
||||
- )
|
||||
+ repos = portage.db[portage.root]["vartree"].settings.repositories
|
||||
+ if repo == "":
|
||||
+ main_repo = repos.mainRepo()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user