aboutsummaryrefslogtreecommitdiffstats
path: root/autodownload.py
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2017-07-14 20:31:06 +0200
committerfilip <filip.komar@gmail.com>2017-07-14 20:31:06 +0200
commit41e8bcbe42a9e423697829c1d21cde832fc3193d (patch)
treeb1ef9e8e66f0a78e7d5495976b9b0b607664cdfc /autodownload.py
parent82f5357c540a5fdf220ba4b710485533a7b79479 (diff)
downloaddoc-41e8bcbe42a9e423697829c1d21cde832fc3193d.tar
doc-41e8bcbe42a9e423697829c1d21cde832fc3193d.tar.gz
doc-41e8bcbe42a9e423697829c1d21cde832fc3193d.tar.bz2
doc-41e8bcbe42a9e423697829c1d21cde832fc3193d.tar.xz
doc-41e8bcbe42a9e423697829c1d21cde832fc3193d.zip
adding option to process other manuals + typo fix
Diffstat (limited to 'autodownload.py')
-rw-r--r--autodownload.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/autodownload.py b/autodownload.py
index 11ba0cad..a42ab6e8 100644
--- a/autodownload.py
+++ b/autodownload.py
@@ -12,10 +12,19 @@
("installer" or "mcc")
.. warning:: IT SHOULD NOT BE RUN IN THE GIT CLONE!!!
-
+
To use the update script, you need a clean git clone, so you must not
polluate it with the downloaded manuals
+ drakx-installer-help currently doesn't follow the above path rules so you need to do:
+ wget --directory-prefix=./drakx-installer-help/ --timestamping --no-host-directories --recursive --no-directories --no-parent --accept zip http://docteam.mageia.nl/zipped/drakx-installer-help/
+ similarly you can use
+ wget --directory-prefix=./MCC/ --timestamping --no-host-directories --recursive --no-directories --no-parent --accept zip http://docteam.mageia.nl/zipped/MCC/
+ wget --directory-prefix=./netinstall/ --timestamping --no-host-directories --recursive --no-directories --no-parent --accept zip http://docteam.mageia.nl/zipped/netinstall/
+ wget --directory-prefix=./installer/ --timestamping --no-host-directories --recursive --no-directories --no-parent --accept zip http://docteam.mageia.nl/zipped/installer/
+ wget --directory-prefix=./draklive/ --timestamping --no-host-directories --recursive --no-directories --no-parent --accept zip http://docteam.mageia.nl/zipped/draklive/
+
+
"""
from urllib.request import urlopen, urlretrieve
from urllib.error import HTTPError
@@ -23,12 +32,14 @@ from html.parser import HTMLParser
manual_name_prefix = {"installer": "DrakX-",
- "MCC": "MCC-", "draklive": "DrakLive-"}
+ "MCC": "MCC-",
+ "draklive": "DrakLive-",
+ "netinstall": "NetInstall-"}
manual_name_suffix = "WebHelp-zipped.zip"
def usage():
- print("python3 autodownlaod.py <manual> [<server_url>]")
+ print("python3 autodownload.py <manual> [<server_url>]")
print("\t <manual>: MCC, installer or draklive")
print("\t <server_url>: (optional) if not given: " +
"http://docteam.mageia.nl/zipped/ will be used")