blob: 92d347ca1ccacf132e6a1f64dba1d80d923fccd0 [file] [log] [blame]
--- lensfun-0.3.2/apps/lensfun-update-data.orig 2015-11-15 18:07:26.000000000 +0100
+++ lensfun-0.3.2/apps/lensfun-update-data 2017-09-03 15:46:53.005426300 +0200
@@ -48,7 +48,8 @@
database_version = lensfun.get_database_version()
-lensfun_updates_dir = "/var/lib/lensfun-updates"
+lensfun_updates_dir = os.path.join(sys.prefix, "var", "lib", "lensfun-updates")
+
if os.name == "posix" and os.geteuid() != 0:
lensfun_updates_dir = os.path.join(os.path.expanduser("~"),
".local", "share", "lensfun", "updates")
--- lensfun-0.3.2/apps/lensfun/__init__.py.in.orig 2015-11-15 18:07:26.000000000 +0100
+++ lensfun-0.3.2/apps/lensfun/__init__.py.in 2020-10-17 20:54:35.312863800 +0200
@@ -7,6 +7,7 @@
"""
import os
+import sys
def get_database_version():
@@ -40,7 +41,7 @@
return 0
versioned_subdir = "version_{}".format(get_database_version())
- db_path_candidates = {"/var/lib/lensfun-updates",
+ db_path_candidates = {sys.prefix + "/var/lib/lensfun-updates",
os.path.expanduser("~/.local/share/lensfun/updates"),
"${LENSFUN_FULL_DATADIR}"}
newest_path = None