Git Product home page Git Product logo

Comments (4)

ximion avatar ximion commented on July 30, 2024

Using appstream-glib for this is no longer ideal, because it does not validate a lot of new concepts used in AppStream today.
Validating with appstreamcli instead gives you:

~$ appstreamcli validate io.sourceforge.kbd-tapper.metainfo.xml
W: io.sourceforge.kbd-tapper:25: tag-empty requires
E: io.sourceforge.kbd-tapper:26: tag-invalid-text-content recommends
I: io.sourceforge.kbd-tapper:3: cid-contains-hyphen io.sourceforge.kbd-tapper

✘ Validation failed: errors: 1, warnings: 1, infos: 1

So, your requires tag in line 25 is empty, and your recommends tag in line 26 is invalid (see https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations for how this should look like).

from appstream-glib.

van-de-bugger avatar van-de-bugger commented on July 30, 2024

Using appstream-glib for this is no longer ideal, because it does not validate a lot of new concepts used in AppStream today.

Thanks for replacement, but it does not solve the issue. Is appstream-util still maintained or completely abandoned? I see no reason why it doesn't print the warning like this one:

$ appstream-util validate ./io.sourceforge.kbd-tapper.metainfo.xml 
Warning: 'appstream-util validate' is outdated, use 'appstreamcli' instead.
...

from appstream-glib.

ximion avatar ximion commented on July 30, 2024

Is appstream-util still maintained or completely abandoned?

I think @hughsie would call it "deep maintenance mode" ;-) - no major new features, but bugfixes are still applied and releases made.
Appstream-glib is a separate project from AppStream itself, I'm not sure if it should print a warning like this... (would certainly not be a decision that I should make, as I am very biased and not the project's maintainer).

How does using the newer tool not solve the issue? As far as I can see, it tells you exactly what you want to know...

from appstream-glib.

van-de-bugger avatar van-de-bugger commented on July 30, 2024

How does using the newer tool not solve the issue? As far as I can see, it tells you exactly what you want to know...

Your suggestion solves my problem. But it does not solve the problem the ticket is about: "Error reporting of 'appstream-util validate' is too vague." I understand appstream-util is in "deep maintenance mode", but I think it is good idea to inform users about it.

from appstream-glib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.