aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-16 20:57:37 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-16 20:57:37 +0000
commit0cf214cc1938ab11295e32a6b7a4e28691df94ce (patch)
treec20b2027c70980615ecff3151ec28601fe898808
parent9649574c4d385f274dd3c2f3243a2df36158ced8 (diff)
downloadremove-old-kernels-0cf214cc1938ab11295e32a6b7a4e28691df94ce.tar
remove-old-kernels-0cf214cc1938ab11295e32a6b7a4e28691df94ce.tar.gz
remove-old-kernels-0cf214cc1938ab11295e32a6b7a4e28691df94ce.tar.bz2
remove-old-kernels-0cf214cc1938ab11295e32a6b7a4e28691df94ce.tar.xz
remove-old-kernels-0cf214cc1938ab11295e32a6b7a4e28691df94ce.zip
- prefix LANGUAGE with $LANG to fix i18n issues0.99.19
- update man page now log file is not removed on package removal - update Norweigian translation file
-rw-r--r--locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mobin6153 -> 6233 bytes
-rwxr-xr-xremove-old-kernels3
-rw-r--r--remove-old-kernels.12
3 files changed, 2 insertions, 3 deletions
diff --git a/locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo
index 3485380..80cf531 100644
--- a/locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo
+++ b/locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo
Binary files differ
diff --git a/remove-old-kernels b/remove-old-kernels
index 4684dfb..f78a4a7 100755
--- a/remove-old-kernels
+++ b/remove-old-kernels
@@ -15,7 +15,8 @@ NBK=3 # Default number of kernels to keep.
DEBUG=0 # 1 for test mode, urpme is simulated and not applied
MODE="I" # mode A)utomatic, I)nteractve (DO NOT CHANGE THIS)
VISU=0 # If VISU=1, show commands which can be used
-LANG=$(echo $LANGUAGE|cut -d: -f1)
+#LANG=$(echo $LANGUAGE|cut -d: -f1)
+LANGUAGE="${LANG}:${LANGUAGE}"
# Colours for display Defaults Used for
Normal="\e[0m" # System default f/g colour
diff --git a/remove-old-kernels.1 b/remove-old-kernels.1
index 080b556..978e1e5 100644
--- a/remove-old-kernels.1
+++ b/remove-old-kernels.1
@@ -30,8 +30,6 @@ This is a good way to make a quick check without any risk of error.
\fBIn automatic mode a log is kept at /var/log/remove-old-kernels.log. The log is limited to 1000 lines (up to a year) and will then start to remove the oldest entries whilst adding new ones. See the -l option to view the log.
.br
-NOTE: If the 'remove old kernels' package is uninstalled, then the log will also be removed,
-so if you need it, you must make a backup of /var/log/remove-old-kernels.log before uninstalling.
.SH DISPLAY