Updating KNewStuff items in kstars does not seem to work.
At kstars we use the
staticxmlprovider for knewstuff downloads.
Upon trying to update an item the download link doesn't seem to be obtainable but shows up in an earlier log message.
Here is the log.
kf.newstuff.core: Install "OpenNGC" from: "http://localhost:8000/dso.xml" kf.newstuff.core: Link ID already known 1 kf.newstuff.core: Payload: "https://indilib.org/jdownloads/knewstuff/1_OpenNGC_6.kscat.tar.gz" kf.newstuff.core: We now have all the links, so let's try and identify the correct one... kf.newstuff.core: Next simplest option, filename is the same but in a different folder kf.newstuff.core: Possibly the payload itself is named differently (by a CDN, for example), but the link identifier is the same... kf.newstuff.core: Least simple option, no match - ask the user to pick (and if we still haven't got one... that's us done, no installation) kf.newstuff.core: We failed to identify a good link for updating "OpenNGC" and are unable to perform the update
Here is the dso.xml:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE knewstuff SYSTEM "knewstuff.dtd"> <knewstuff> <stuff> <name>OpenNGC</name> <type>kstars/data</type> <author email="firstname.lastname@example.org">Christian Dersch</author> <license>CC-BY-SA-4.0</license> <summary lang="en">OpenNGC is a database containing positions and main data of NGC (New General Catalogue) and IC (Index Catalogue) objects. Unlike other similar databases which are released with license limitations, OpenNGC is released under CC-BY-SA-4.0 license, which allows the use for a wider range of cases.</summary> <version>12</version> <release>1</release> <releasedate>2021-07-02</releasedate> <downloadsize1>1.0</downloadsize1> <category>dso</category> <id>1</id> <preview>https://indilib.org/jdownloads/knewstuff/1_OpenNGC_6/ngc.jpg</preview> <payload lang="en">https://indilib.org/jdownloads/knewstuff/1_OpenNGC_6.kscat.tar.gz</payload> </stuff> </knewstuff>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE knewstuffproviders SYSTEM "knewstuffproviders.dtd"> <knewstuffproviders> <provider downloadurl="http://localhost:8000/dso.xml" nouploadurl="https://edu.kde.org/contrib/" icon="http://edu.kde.org/pics/projects/cr32-app-kstars.png"> <title>KStars Data</title> </provider> </knewstuffproviders>
and the kstars.knsrc
[KNewStuff3] ProvidersUrl=http://localhost:8000/providers.xml TargetDir=kstars Uncompress=true