aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")