1 |
commit: d5f85bc8d71d89920332ce760e5da3dca257dc36 |
2 |
Author: Felix Bier <Felix.Bier <AT> rohde-schwarz <DOT> com> |
3 |
AuthorDate: Thu Feb 4 00:34:14 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 20 02:27:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=d5f85bc8 |
7 |
|
8 |
Rename config option 'repos' -> 'repos_storedir' |
9 |
|
10 |
This commit renames the config option 'repos' to 'repos_storedir'. |
11 |
This is done as preparation for renaming 'portage_overlay' to 'repos'. |
12 |
|
13 |
Signed-off-by: Felix Bier <felix.bier <AT> rohde-schwarz.com> |
14 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
15 |
|
16 |
catalyst/defaults.py | 4 ++-- |
17 |
catalyst/targets/snapshot.py | 2 +- |
18 |
doc/catalyst-config.5.txt | 4 ++-- |
19 |
3 files changed, 5 insertions(+), 5 deletions(-) |
20 |
|
21 |
diff --git a/catalyst/defaults.py b/catalyst/defaults.py |
22 |
index 3f12b8d5..3d5c0a7f 100644 |
23 |
--- a/catalyst/defaults.py |
24 |
+++ b/catalyst/defaults.py |
25 |
@@ -20,7 +20,7 @@ valid_config_file_values = frozenset([ |
26 |
"port_logdir", |
27 |
"repo_basedir", |
28 |
"repo_name", |
29 |
- "repos", |
30 |
+ "repos_storedir", |
31 |
"sharedir", |
32 |
"storedir", |
33 |
"target_distdir", |
34 |
@@ -46,7 +46,7 @@ confdefaults = { |
35 |
"port_tmpdir": "/var/tmp/portage", |
36 |
"repo_basedir": "/var/db/repos", |
37 |
"repo_name": "gentoo", |
38 |
- "repos": "%(storedir)s/repos", |
39 |
+ "repos_storedir": "%(storedir)s/repos", |
40 |
"sharedir": "/usr/share/catalyst", |
41 |
"shdir": "%(sharedir)s/targets", |
42 |
"storedir": "/var/tmp/catalyst", |
43 |
|
44 |
diff --git a/catalyst/targets/snapshot.py b/catalyst/targets/snapshot.py |
45 |
index 6b727600..b494575a 100644 |
46 |
--- a/catalyst/targets/snapshot.py |
47 |
+++ b/catalyst/targets/snapshot.py |
48 |
@@ -27,7 +27,7 @@ class snapshot(TargetBase): |
49 |
TargetBase.__init__(self, myspec, addlargs) |
50 |
|
51 |
self.git = command('git') |
52 |
- self.ebuild_repo = Path(self.settings['repos'], |
53 |
+ self.ebuild_repo = Path(self.settings['repos_storedir'], |
54 |
self.settings['repo_name']).with_suffix('.git') |
55 |
self.gitdir = str(self.ebuild_repo) |
56 |
|
57 |
|
58 |
diff --git a/doc/catalyst-config.5.txt b/doc/catalyst-config.5.txt |
59 |
index 570d42c2..ebd99b55 100644 |
60 |
--- a/doc/catalyst-config.5.txt |
61 |
+++ b/doc/catalyst-config.5.txt |
62 |
@@ -109,7 +109,7 @@ Repository settings |
63 |
Defines the location of your local source file repository. |
64 |
Defaults to the host's DISTDIR. |
65 |
|
66 |
-*repos*:: |
67 |
+*repos_storedir*:: |
68 |
The directory in which git repositories exist for use by the snapshot target. |
69 |
Defaults to `${storedir}/repos`. |
70 |
|
71 |
@@ -120,7 +120,7 @@ gentoo repo) and any overlays. The default location is |
72 |
|
73 |
*repo_name*:: |
74 |
The name of the main repository (e.g. gentoo). The git repository at |
75 |
-`${repos}/${repo_name}.git` will be used to produce the portdir sqfs |
76 |
+`${repos_storedir}/${repo_name}.git` will be used to produce the portdir sqfs |
77 |
snapshot. |
78 |
|
79 |
*target_distdir*:: |