From 41e8bcbe42a9e423697829c1d21cde832fc3193d Mon Sep 17 00:00:00 2001 From: filip Date: Fri, 14 Jul 2017 20:31:06 +0200 Subject: adding option to process other manuals + typo fix --- autodownload.py | 17 ++++++++++++++--- 1 file 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 []") + print("python3 autodownload.py []") print("\t : MCC, installer or draklive") print("\t : (optional) if not given: " + "http://docteam.mageia.nl/zipped/ will be used") -- cgit v1.2.1