summarylogtreecommitdiffstats
path: root/archlinux.patch
diff options
context:
space:
mode:
Diffstat (limited to 'archlinux.patch')
-rw-r--r--archlinux.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/archlinux.patch b/archlinux.patch
new file mode 100644
index 000000000000..bacb90a4ca22
--- /dev/null
+++ b/archlinux.patch
@@ -0,0 +1,27 @@
+diff -ur old/reddio new/reddio
+--- old/reddio 2019-08-24 14:59:17.992503592 +0200
++++ new/reddio 2019-08-24 15:00:06.863109059 +0200
+@@ -185,7 +185,7 @@
+ load_config "$config_file"
+
+ # Environment variable has precedence over config
+- lib_dir=${REDDIO_LIB:-${lib_dir:-/usr/local/share/reddio}}
++ lib_dir=${REDDIO_LIB:-${lib_dir:-/usr/share/reddio}}
+
+ # Make sure the lib directory can be found
+ [ -d "$lib_dir" ] \
+diff -ur old/share/reddio/pretty-time.sh new/share/reddio/pretty-time.sh
+--- old/share/reddio/pretty-time.sh 2019-08-24 14:59:37.992753822 +0200
++++ new/share/reddio/pretty-time.sh 2019-08-24 15:00:26.673348916 +0200
+@@ -41,9 +41,9 @@
+ # Fractions greater than 95 will round up to a whole number
+ # We do not want to show the .0
+ elif [ "$_frac" -gt 95 ]; then
+- printf '%.0f %ss ago\n' $_int.$_frac $2
++ LC_NUMERIC=C printf '%.0f %ss ago\n' $_int.$_frac $2
+ # Everything else is shown with one decimal
+ else
+- printf '%.1f %ss ago\n' $_int.$_frac $2
++ LC_NUMERIC=C printf '%.1f %ss ago\n' $_int.$_frac $2
+ fi
+ }