-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hosts.block not being updated #92
Comments
Try deleting all your files in |
I think
After that, the initial update worked. This might be a separate issue that the cache directory should either be part of the package or created by On to your comment. After emptying the cache directory, I ran
|
I think I see where the problem is, but it shouldn't be a problem. I'm going to see if I can replicate it on my end, but in the meanwhile, here's a work around: Work-aroundOpen Go to line 618, which will look like this _job_download_list "$_url" & Here's the context leading up to it if you can't find it: # DOWNLOAD BLOCKLISTS AND/OR REDIRECT LISTS
_notify 1 "Checking blocklists and/or redirectlists for updates..."
[ -d "$tmpdir"/downloads/ ] && rm -rf $_v -- "$tmpdir"/downloads/
mkdir -p $_v -- "$tmpdir"/downloads/
sed "s/#.*//g" $blocklists $redirectlists | grep "[[:alnum:]]" | \
while read _url; do
if [ $max_simultaneous_downloads -gt 0 ]; then
while [ $(find "$tmpdir"/downloads -type f | wc -l) -ge $max_simultaneous_downloads ]; do
sleep 0.1
done
fi
_job_download_list "$_url" & Remove the " _job_download_list "$_url" This removes your ability to download more than one file in parallel, but since you download only one, this will make absolutely no difference. P.S. Thanks so much for testing this! We're getting closer to a 1.0 release because of you! The issue (a note to myself or anyone interested):The loop I used to download blocklists in parallel uses a temporary directory to keep track of how many downloads are in progress at a particular moment. The function However, if there are not a lot of to-be-downloaded blocklists, both loops seem to exit before the first
|
hostsblock
had not updatedhosts.block
since I installed version 0.999.8.1 8 days ago. The only blocklist I’m using is StevenBlack (last updated 5 days ago). The timer is enabled, the computer was running every day. I have not changedhostsblock.conf
.First, I edited the timer to run every 5 minutes.
hosts.block
remained unchanged.I then tried to manually update:
(Note: The last line was output after my PS1 was already displayed.)
After this,
hosts.block
was still not updated, so I used the-u
flag:This worked.
Why did
hostsblock
require the-u
flag? Might this also be the reason why the timed execution fails to updatehosts.block
?The text was updated successfully, but these errors were encountered: