Skip to content

Commit

Permalink
Merge pull request #1228 from rvykydal/update-packages-instLangs-option
Browse files Browse the repository at this point in the history
Update packages instLangs and excludeWeakdeps options (gh#1227)
  • Loading branch information
rvykydal authored Jun 24, 2024
2 parents 6f96a65 + d78694d commit a0d1fba
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 18 deletions.
3 changes: 3 additions & 0 deletions fragments/platform/rhel8/payload/packages_instlangs_1.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Only install the en_US locale
%packages --instLangs=en_US
%end
3 changes: 3 additions & 0 deletions fragments/platform/rhel8/payload/packages_instlangs_2.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Install no locales
%packages --instLangs=
%end
8 changes: 8 additions & 0 deletions fragments/platform/rhel8/payload/packages_instlangs_3.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Install a short list of languages
# Use ones with translations in blivet to make them easy to find.
# Add glibc-all-langpacks to install locale data separately from
# lang --addsupport.
%packages --instLangs=es:fr:it
python3-blivet
glibc-all-langpacks
%end
4 changes: 4 additions & 0 deletions fragments/platform/rhel8/payload/packages_weakdeps.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Install gnupg2 and make sure the packages it recommends are skipped
%packages --excludeWeakdeps
gnupg2
%end
3 changes: 3 additions & 0 deletions fragments/shared/payload/packages_instlangs_1.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Only install the en_US locale
%packages --inst-langs=en_US
%end
3 changes: 3 additions & 0 deletions fragments/shared/payload/packages_instlangs_2.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Install no locales
%packages --inst-langs=
%end
8 changes: 8 additions & 0 deletions fragments/shared/payload/packages_instlangs_3.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Install a short list of languages
# Use ones with translations in blivet to make them easy to find.
# Add glibc-all-langpacks to install locale data separately from
# lang --addsupport.
%packages --inst-langs=es:fr:it
python3-blivet
glibc-all-langpacks
%end
4 changes: 4 additions & 0 deletions fragments/shared/payload/packages_weakdeps.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Install gnupg2 and make sure the packages it recommends are skipped
%packages --exclude-weakdeps
gnupg2
%end
4 changes: 1 addition & 3 deletions packages-instlangs-1.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
%ksappend repos/default.ks
%ksappend common/common_no_payload.ks

# Only install the en_US locale
%packages --instLangs=en_US
%end
%ksappend payload/packages_instlangs_1.ks

%post
# Make sure no non-english .mo files were installed
Expand Down
4 changes: 1 addition & 3 deletions packages-instlangs-2.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
%ksappend repos/default.ks
%ksappend common/common_no_payload.ks

# Install no locales
%packages --instLangs=
%end
%ksappend payload/packages_instlangs_2.ks

%post
# Make sure no .mo files were installed
Expand Down
9 changes: 1 addition & 8 deletions packages-instlangs-3.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,7 @@ timezone America/New_York --utc
# additional langpacks packages don't confuse the locale test
lang fr_FR.UTF-8

# Install a short list of languages
# Use ones with translations in blivet to make them easy to find.
# Add glibc-all-langpacks to install locale data separately from
# lang --addsupport.
%packages --instLangs=es:fr:it
python3-blivet
glibc-all-langpacks
%end
%ksappend payload/packages_instlangs_3.ks

%post
# Make sure the locales we asked for are installed
Expand Down
5 changes: 1 addition & 4 deletions packages-weakdeps.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
%ksappend repos/default.ks
%ksappend common/common_no_payload.ks

# Install gnupg2 and make sure the packages it recommends are skipped
%packages --excludeWeakdeps
gnupg2
%end
%ksappend payload/packages_weakdeps.ks

%post
# Make sure the --recommends packages from gnupg2 are not installed
Expand Down

0 comments on commit a0d1fba

Please sign in to comment.