1 |
Signed-off-by: Aaron Bauman <bman@g.o> |
2 |
--- |
3 |
lib/portage/_sets/__init__.py | 10 +++++----- |
4 |
1 file changed, 5 insertions(+), 5 deletions(-) |
5 |
|
6 |
diff --git a/lib/portage/_sets/__init__.py b/lib/portage/_sets/__init__.py |
7 |
index 6c6df4cca..ea0a8b9b4 100644 |
8 |
--- a/lib/portage/_sets/__init__.py |
9 |
+++ b/lib/portage/_sets/__init__.py |
10 |
@@ -1,4 +1,4 @@ |
11 |
-# Copyright 2007-2019 Gentoo Authors |
12 |
+# Copyright 2007-2020 Gentoo Authors |
13 |
# Distributed under the terms of the GNU General Public License v2 |
14 |
|
15 |
from __future__ import print_function |
16 |
@@ -150,12 +150,12 @@ class SetConfig: |
17 |
if not setname in self.psets: |
18 |
options["name"] = setname |
19 |
options["world-candidate"] = "False" |
20 |
- |
21 |
+ |
22 |
# for the unlikely case that there is already a section with the requested setname |
23 |
import random |
24 |
while setname in parser.sections(): |
25 |
setname = "%08d" % random.randint(0, 10**10) |
26 |
- |
27 |
+ |
28 |
parser.add_section(setname) |
29 |
for k, v in options.items(): |
30 |
parser.set(setname, k, v) |
31 |
@@ -200,7 +200,7 @@ class SetConfig: |
32 |
optdict = {} |
33 |
for oname in parser.options(sname): |
34 |
optdict[oname] = parser.get(sname, oname) |
35 |
- |
36 |
+ |
37 |
# create single or multiple instances of the given class depending on configuration |
38 |
if parser.has_option(sname, "multiset") and \ |
39 |
parser.getboolean(sname, "multiset"): |
40 |
@@ -245,7 +245,7 @@ class SetConfig: |
41 |
"must be configured as multiset") % {"class": classname, "section": sname}) |
42 |
continue |
43 |
self._parsed = True |
44 |
- |
45 |
+ |
46 |
def getSets(self): |
47 |
self._parse() |
48 |
return self.psets.copy() |
49 |
-- |
50 |
2.28.0 |