Skip to content

Commit

Permalink
live: config.sh: ignore non-existent translations if already missing (#…
Browse files Browse the repository at this point in the history
…1729)

## Problem

Some packages (e.g. gettext-runtime) might not be installed, and if
missing the glob would not be evaluated and rm would fail.


## Solution

Let's use `rm -f` instead.


## Testing

- *Tested manually*
  • Loading branch information
lslezak authored Nov 5, 2024
2 parents 6316224 + e0114fe commit 233f705
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions live/src/agama-installer.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 5 12:41:19 UTC 2024 - Eugenio Paolantonio <[email protected]>

- config.sh: ignore non-existent translations if already missing.

-------------------------------------------------------------------
Fri Sep 20 11:44:43 UTC 2024 - Imobach Gonzalez Sosa <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion live/src/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ls -1 "${IGNORE_OPTS[@]}" -I "en_US*" -I "C.*" /usr/lib/locale/ | xargs -I% sh -

# delete unused translations (MO files)
for t in zypper gettext-runtime p11-kit; do
rm /usr/share/locale/*/LC_MESSAGES/$t.mo
rm -f /usr/share/locale/*/LC_MESSAGES/$t.mo
done
du -h -s /usr/{share,lib}/locale/

Expand Down

0 comments on commit 233f705

Please sign in to comment.