这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@vladimyr
Copy link
Contributor

@vladimyr vladimyr commented Apr 4, 2021

I've added the following helper functions to make code more readable:

  • check_mirror - does HTTP request to verify mirror
  • hostname - extracts hostname part of URL
  • last_modified - returns the number of seconds since the last file modification took place

Additionally, I've removed redundant curlies around vars.

@vladimyr vladimyr changed the title termux-tools: pkg: extract mirror check to function termux-tools: pkg: extract mirror check to function & add last_modified helper Apr 4, 2021
@vladimyr vladimyr changed the title termux-tools: pkg: extract mirror check to function & add last_modified helper termux-tools: pkg: refactor code by introducing helper functions Apr 5, 2021
@ghost ghost merged commit ecd1a46 into termux:master Apr 7, 2021
@vladimyr vladimyr deleted the pkg/check-mirror branch April 7, 2021 16:53
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant