diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2017-01-06 20:11:26 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-01-06 15:41:51 -0500 |
commit | 4f80a3642631cdc2ce86f319824bdcbb4721cac9 (patch) | |
tree | d70a6b6c2708dcd6cca8bd3cb7849a245e095bee /net-misc/electrum/files | |
parent | sys-kernel/vanilla-sources: Linux patches 4.9.1, 4.8.16 and 4.4.40. Remove old (diff) | |
download | gentoo-4f80a3642631cdc2ce86f319824bdcbb4721cac9.tar.gz gentoo-4f80a3642631cdc2ce86f319824bdcbb4721cac9.tar.bz2 gentoo-4f80a3642631cdc2ce86f319824bdcbb4721cac9.zip |
net-misc/electrum: 2.7.15
Diffstat (limited to 'net-misc/electrum/files')
-rw-r--r-- | net-misc/electrum/files/2.7.15-no-user-root.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/electrum/files/2.7.15-no-user-root.patch b/net-misc/electrum/files/2.7.15-no-user-root.patch new file mode 100644 index 000000000000..e98cf30da42c --- /dev/null +++ b/net-misc/electrum/files/2.7.15-no-user-root.patch @@ -0,0 +1,15 @@ +--- setup.py.orig 2017-01-06 19:17:44.294137848 +0000 ++++ setup.py 2017-01-06 19:17:50.093161327 +0000 +@@ -21,12 +21,6 @@ + parser.add_argument('--root=', dest='root_path', metavar='dir', default='/') + opts, _ = parser.parse_known_args(sys.argv[1:]) + usr_share = os.path.join(sys.prefix, "share") +- if not os.access(opts.root_path + usr_share, os.W_OK) and \ +- not os.access(opts.root_path, os.W_OK): +- if 'XDG_DATA_HOME' in os.environ.keys(): +- usr_share = os.environ['XDG_DATA_HOME'] +- else: +- usr_share = os.path.expanduser('~/.local/share') + data_files += [ + (os.path.join(usr_share, 'applications/'), ['electrum.desktop']), + ] |