Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAticles.sh schlägt fehl unter libxml version 20904 #1

Open
krugbuild opened this issue Jan 22, 2020 · 1 comment
Open

getAticles.sh schlägt fehl unter libxml version 20904 #1

krugbuild opened this issue Jan 22, 2020 · 1 comment

Comments

@krugbuild
Copy link
Owner

getArticles.sh liest via xmllint aus historyData.xml die IDs der Versionen, um über diese in einer Schleife die einzelnen Artikelversionen mittels wget abzurufen.

88: idList="xmllint --xpath 'article/versions/version/id/text()' $xmlSource"
104: idList="xmllint --xpath 'article/versions/version[timestamp>$zBeginn and timestamp<$zEnde]/id/text()' $xmlSource"
121: for id in $(eval $idList)

xmllint aus dem Paket libxml in der Version 20904 liest die IDs jedoch ohne Whitespace ein, anstatt einer Liste entsteht somit ein einzelner String. Der wget Abruf mit der invaliden ID scheitert.

Unter libxml Version 20909 werden die IDs hingegen als einzelne Instanzen eingelesen.

@krugbuild
Copy link
Owner Author

Benötigt wird libxml2-utils in der Version 2.9.9.
Für 18.04.1 (bionic) z.B. enthalten in https://launchpad.net/~ondrej/+archive/ubuntu/php/

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

No branches or pull requests

1 participant