Skip to content

Commit 34e3181

Browse files
authored
fix: Ensure TSP model names do not collide (#543)
1 parent 811f18d commit 34e3181

5 files changed

Lines changed: 43 additions & 43 deletions

File tree

modules/apk/apk.tsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ model ApkModuleV1 {
1515
type: "apk" | "apk@v1" | "apk@latest";
1616

1717
/** Configuration of packages removal. */
18-
remove?: Remove;
18+
remove?: ApkRemove;
1919

2020
/** Configuration of packages install. */
21-
install?: Install;
21+
install?: ApkInstall;
2222
}
2323

24-
model Install {
24+
model ApkInstall {
2525
/** List of packages to install. */
2626
packages: Array<string>;
2727
}
2828

29-
model Remove {
29+
model ApkRemove {
3030
/** List of packages to remove. */
3131
packages: Array<string>;
3232
}

modules/apt/apt.tsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ model AptModuleV1 {
1515
type: "apt" | "apt@v1" | "apt@latest";
1616

1717
/** Configuration of packages removal. */
18-
remove?: Remove;
18+
remove?: AptRemove;
1919

2020
/** Configuration of packages install. */
21-
install?: Install;
21+
install?: AptInstall;
2222
}
2323

24-
model Install {
24+
model AptInstall {
2525
/** List of packages to install. */
2626
packages: Array<string>;
2727
}
2828

29-
model Remove {
29+
model AptRemove {
3030
/** List of packages to remove. */
3131
packages: Array<string>;
3232
}

modules/dnf/dnf.tsp

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,40 @@ model DnfModuleV1 {
1515
type: "dnf" | "dnf@v1" | "dnf@latest";
1616

1717
/** List of links to .repo files to download into /etc/yum.repos.d/. */
18-
repos?: Repo;
18+
repos?: DnfRepo;
1919

2020
/** DEPRECATED: List of folder names under /opt/ to enable for installing into. */
2121
optfix?: Array<string>;
2222

2323
/** Configuration of RPM groups removal. */
24-
`group-remove`?: GroupRemove;
24+
`group-remove`?: DnfGroupRemove;
2525

2626
/** Configuration of RPM groups install. */
27-
`group-install`?: GroupInstall;
27+
`group-install`?: DnfGroupInstall;
2828

2929
/** Configuration of RPM packages removal. */
30-
remove?: Remove;
30+
remove?: DnfRemove;
3131

3232
/** Configuration of RPM packages install. */
33-
install?: Install;
33+
install?: DnfInstall;
3434

3535
/** List of configurations for replacing packages from another repo. */
36-
replace?: Array<Replace>;
36+
replace?: Array<DnfReplace>;
3737
}
3838

39-
model Repo {
39+
model DnfRepo {
4040
/** Cleans up the repos added in the same step after packages are installed. */
4141
cleanup?: boolean = false;
4242

4343
/** List of paths or URLs to .repo files to import */
44-
files?: Array<string> | RepoFiles;
44+
files?: Array<string> | DnfRepoFiles;
4545

4646
/**
4747
* List of COPR project repos to add.
4848
* You can also specify 2 lists
4949
* instead to 'enable' or 'disable' COPR repos.
5050
*/
51-
copr?: Array<string | RepoCoprEnable> | RepoCopr;
51+
copr?: Array<string | DnfRepoCoprEnable> | DnfRepoCopr;
5252

5353
/** List of links to key files to import for installing from custom repositories. */
5454
keys?: Array<string>;
@@ -63,7 +63,7 @@ model Repo {
6363
nonfree?: "negativo17" | "rpmfusion";
6464
}
6565

66-
model RepoFiles {
66+
model DnfRepoFiles {
6767
/** List of repo files/URLs to add. */
6868
add?: Array<string>;
6969

@@ -75,58 +75,58 @@ model RepoFiles {
7575
remove?: Array<string>;
7676
}
7777

78-
model RepoCopr {
78+
model DnfRepoCopr {
7979
/** List of COPR repos to enable */
80-
enable?: Array<string | RepoCoprEnable>;
80+
enable?: Array<string | DnfRepoCoprEnable>;
8181

8282
/** List of COPR repos to disable */
8383
disable?: Array<string>;
8484
}
8585

86-
model RepoCoprEnable {
86+
model DnfRepoCoprEnable {
8787
/** The COPR repo's name */
8888
name: string;
8989

9090
/** The chroot for the COPR repo */
9191
chroot: string;
9292
}
9393

94-
model Install {
94+
model DnfInstall {
9595
/** List of RPM packages to install. */
96-
packages: Array<string | InstallRepo>;
96+
packages: Array<string | DnfInstallRepo>;
9797

98-
...InstallCommon;
98+
...DnfInstallCommon;
9999
}
100100

101-
model InstallRepo {
101+
model DnfInstallRepo {
102102
/** The repo to use when installing packages */
103103
repo: string;
104104

105105
/** List of RPM packages to install. */
106106
packages: Array<string>;
107107

108-
...InstallCommon;
108+
...DnfInstallCommon;
109109
}
110110

111-
model Remove {
111+
model DnfRemove {
112112
/** List of RPM packages to remove. */
113113
packages: Array<string>;
114114

115115
/** Whether to remove unused dependencies during removal operation. */
116116
`auto-remove`?: boolean = true;
117117
}
118118

119-
model Replace {
119+
model DnfReplace {
120120
/** URL to the source COPR repo for the new packages. */
121121
`from-repo`: string;
122122

123123
/** List of packages to replace using packages from the defined repo. */
124-
packages: Array<string | Swap>;
124+
packages: Array<string | DnfSwap>;
125125

126-
...InstallCommon;
126+
...DnfInstallCommon;
127127
}
128128

129-
model Swap {
129+
model DnfSwap {
130130
/** The package to be replaced. */
131131
old: string;
132132

@@ -137,22 +137,22 @@ model Swap {
137137
`allow-erasing`?: boolean = false;
138138
}
139139

140-
model GroupInstall {
140+
model DnfGroupInstall {
141141
/** List of RPM groups to install. */
142142
packages: Array<string>;
143143

144144
/** Include optional packages from group. */
145145
`with-optional`?: boolean = false;
146146

147-
...InstallCommon;
147+
...DnfInstallCommon;
148148
}
149149

150-
model GroupRemove {
150+
model DnfGroupRemove {
151151
/** List of RPM groups to remove. */
152152
packages: Array<string>;
153153
}
154154

155-
model InstallCommon {
155+
model DnfInstallCommon {
156156
/** Whether to install weak dependencies. */
157157
`install-weak-deps`?: boolean = true;
158158

modules/pacman/pacman.tsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ model PacmanModuleV1 {
1515
type: "pacman" | "pacman@v1" | "pacman@latest";
1616

1717
/** Configuration of packages removal. */
18-
remove?: Remove;
18+
remove?: PacmanRemove;
1919

2020
/** Configuration of packages install. */
21-
install?: Install;
21+
install?: PacmanInstall;
2222
}
2323

24-
model Install {
24+
model PacmanInstall {
2525
/** List of packages to install. */
2626
packages: Array<string>;
2727
}
2828

29-
model Remove {
29+
model PacmanRemove {
3030
/** List of packages to remove. */
3131
packages: Array<string>;
3232
}

modules/zypper/zypper.tsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ model ZypperModuleV1 {
1515
type: "zypper" | "zypper@v1" | "zypper@latest";
1616

1717
/** Configuration of packages removal. */
18-
remove?: Remove;
18+
remove?: ZypperRemove;
1919

2020
/** Configuration of packages install. */
21-
install?: Install;
21+
install?: ZypperInstall;
2222
}
2323

24-
model Install {
24+
model ZypperInstall {
2525
/** List of packages to install. */
2626
packages: Array<string>;
2727
}
2828

29-
model Remove {
29+
model ZypperRemove {
3030
/** List of packages to remove. */
3131
packages: Array<string>;
3232
}

0 commit comments

Comments
 (0)