summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2019-01-14 23:17:13 -0600
committerRobby Workman <rworkman@slackware.com>2019-01-14 23:17:13 -0600
commita9c7e7d4c7d40b36965bcf8a45419c2de6d04954 (patch)
tree6d3785eb73616f54dc9f686361dc003a12049b78 /files
parenta2f35e31101fdc7a2b1092eca3ea854c81172ada (diff)
downloadslackpkg-a9c7e7d4c7d40b36965bcf8a45419c2de6d04954.tar.xz
Fixup blacklist checking and appending when using alt $ROOT
Thanks to dive for the report.
Diffstat (limited to 'files')
-rw-r--r--files/core-functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh
index 93b11e2..19eebf3 100644
--- a/files/core-functions.sh
+++ b/files/core-functions.sh
@@ -589,7 +589,7 @@ function makelist() {
INPUTLIST=$@
- grep -vE "(^#|^[[:blank:]]*$)" ${CONF}/blacklist | \
+ grep -vE "(^#|^[[:blank:]]*$)" ${ROOT}/${CONF}/blacklist | \
sed -E "
s,^, ,
s,$, ,
@@ -1277,7 +1277,7 @@ Okay - slackpkg won't do anything now, but please, do something to fix it.\n"
}
function blacklist_pkg() {
- echo $SHOWLIST | tr ' ' "\n" >> ${CONF}/blacklist
+ echo $SHOWLIST | tr ' ' "\n" >> ${ROOT}/${CONF}/blacklist
echo -e "\nPackages added to your blacklist.\n\
If you want to remove those packages, edit ${CONF}/blacklist.\n"