pastebinit: fix paths to /etc/pastebin.d directory

Reported in https://github.com/termux/termux-packages/issues/5018.
This commit is contained in:
Leonid Pliushch 2020-03-09 13:42:23 +02:00
parent 93bba03e1d
commit 5b29b31578
2 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://launchpad.net/pastebinit
TERMUX_PKG_DESCRIPTION="Command-line pastebin client"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=1.5.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/felixonmars/pastebinit/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=30850b9dc6b3e9105321cee159d491891b3d3c03180440edffa296c7e1ac0c41
TERMUX_PKG_DEPENDS="python"

View File

@ -0,0 +1,14 @@
diff -uNr pastebinit-1.5.1/pastebinit pastebinit-1.5.1.mod/pastebinit
--- pastebinit-1.5.1/pastebinit 2019-08-03 08:35:53.000000000 +0300
+++ pastebinit-1.5.1.mod/pastebinit 2020-03-09 13:41:52.506708998 +0200
@@ -81,8 +81,8 @@
# - user's overrides in ~/.pastebin.d
# Files found later override files found earlier.
pastebind = {}
- for confdir in ['/usr/share/pastebin.d', '/etc/pastebin.d',
- '/usr/local/etc/pastebin.d',
+ for confdir in ['@TERMUX_PREFIX@/share/pastebin.d', '@TERMUX_PREFIX@/etc/pastebin.d',
+ '@TERMUX_PREFIX@/local/etc/pastebin.d',
os.path.expanduser('~/.pastebin.d'),
os.path.join(
os.path.dirname(