summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2020-07-24 22:52:15 -0400
committerbrent s <bts@square-r00t.net>2020-07-24 22:52:15 -0400
commit18024ba61aab91d77b876a8967450fb822525a55 (patch)
tree73c709c1c3829183e0a3f9cfd31d959734e46236
parent3676acfc001de601e587ae4ca705d7d10529fe2a (diff)
downloadRepoMirror-18024ba61aab91d77b876a8967450fb822525a55.tar.xz
adding some minor tweaks and TODO
-rw-r--r--example.config.xml5
-rw-r--r--requirements.txt4
2 files changed, 7 insertions, 2 deletions
diff --git a/example.config.xml b/example.config.xml
index e8e1c5d..2f27f1f 100644
--- a/example.config.xml
+++ b/example.config.xml
@@ -2,6 +2,7 @@
<!--
This is by default placed in ~/.config/repomirror.xml
Remember to replace any necessary special characters (https://stackoverflow.com/a/1091953/733214).
+ Also, your mirror server should definitely be using UTC. You're going to see a LOT of weirdness if not.
-->
<mirror xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://git.square-r00t.net/RepoMirror/"
@@ -121,8 +122,8 @@
You can optionally specify an offset via the "offset" attribute in the same format as "delayCheck" if your
upstream's remote files are using a different timezone instead of UTC.
e.g.:
- * If your upstream uses UTC-4 for its timestamp files', you would use "-PT4H".
- * If your upstream uses UTC+6 for its timestamp files, you would use either "+PT4H" or just "PT4H".
+ * If your upstream uses UTC-4 for its timestamp files, you would use "-PT4H".
+ * If your upstream uses UTC+6 for its timestamp files, you would use either "+PT6H" or just "PT6H".
-->
<upstream delayCheck="P0Y0M2DT0H0M0S" offset="-PT0S">
<!--
diff --git a/requirements.txt b/requirements.txt
index 72951be..99a5a36 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,6 +2,10 @@
lxml>=4.5.1
psutil>=5.7.0
requests>=2.23.0
+## TODO: support non-UTC local timezone.
+# https://stackoverflow.com/questions/13218506/how-to-get-system-timezone-setting-and-pass-it-to-pytz-timezone
+# https://stackoverflow.com/questions/5067218/get-utc-timestamp-in-python-with-datetime
+#tzlocal>=2.1
# The below are optional.
## Provides journald logging on systemd machines.
## However, it isn't in PyPi; look for something like "python-systemd" or "python3-systemd" in your distro's repositories (it's built from the systemd source).