Re: I need help getting a web page with curl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/12/21 21:55, Gordon Messmer wrote:
On 10/12/21 02:13, ToddAndMargo via users wrote:

I wrote a program to go out to web pages and check
revisions on about 70 programs that I support at
my customer sites.


Well, I have a couple of questions...  The commands and output that you posted earlier pulled some text from a commit message, which isn't a revision at all.  It's neither a commit ID, nor a tag, nor a release. It's not even guaranteed to be unique.  So, specifically what are you looking for?

For most projects, I'd suggest using the API to get the most recent release or tag, since they don't release on every commit (and I'm guessing that you're not deploying directly from git on each of their commits either, but maybe you are).  However, spice-nsis doesn't appear to have any of either of those.

So, maybe you mean you're looking for the last commit ID.  If so, you can use the "curl | jq" commands that I posted earlier to get those.


With a web browser, you can see the revision
https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/tree/master
but right pane is dynamically generated


Well, the whole page is dynamically generated.  It's more accurate and meaningful to say that the commit message and commit ID (the revision) come from the API, which you can query with curl and jq.

Oh ya.  No fooling.  The way OI am getting the revison of
the program is the worst way of doing it.

And I have no choice:

Spice Guest Tools Downloads are not versioned
https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/issues/6

And to add insult to injury, the version is not
in the file itgelf (filever.exe)
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux