From cc9b0121e361189817285239ba6edf0938d596fe Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 14 Jul 2015 09:05:35 -0500 Subject: [PATCH] add patch too --- lensfun-update-data.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lensfun-update-data.patch diff --git a/lensfun-update-data.patch b/lensfun-update-data.patch new file mode 100644 index 0000000..4773b48 --- /dev/null +++ b/lensfun-update-data.patch @@ -0,0 +1,11 @@ +--- lensfun-0.3.1/apps/lensfun-update-data.orig 2015-07-14 11:33:08.643910978 +0200 ++++ lensfun-0.3.1/apps/lensfun-update-data 2015-07-14 11:47:31.511063269 +0200 +@@ -45,7 +45,7 @@ + import urllib.request, shutil, sys, os, getpass, time, calendar, tarfile, json + + lensfun_updates_dir = "/var/lib/lensfun-updates" +-if sys.platform != "win32" and getpass.getuser() != "root": ++if sys.platform != "win32" and os.geteuid() != 0: + lensfun_updates_dir = os.path.join(os.path.expanduser("~"), + ".local", "share", "lensfun", "updates") + print("info: root privileges needed for updating the system database.")