You are not logged in.

#1 2012-02-03 20:48:33

sitquietly
Member
From: On the Wolf River
Registered: 2010-07-12
Posts: 220

how to fetch a package's commit messages as text?

I use a set of my own scripts for building everything from abs/aur from source.  I track dependencies, including makedepends, package groups, package splits, etc by scanning PKGBULDs to extract the info into my database.  My build script attempts to automatically show me the README and configuration options via "configure --help" or "cmake -LH", and after the package is built it shows me the namcap output so that I can approve the build and go on or change the PKGBUILD to correct errors.

I would really like to have my build script also show me the changelog, as a text file, for the package by fetching the commit messages from the Arch web interface, such as http://projects.archlinux.org/svntogit/ … &showmsg=1, but I don't know how to fetch that dynamic page as a text file. 

If it were a simple static page like the main page for archlinux.org I could get it with lynx -dump or html2text, but these don't give me anything useful for the package's "View Changes" pages.

I hope that seems like a simple problem to someone.  Please give me a clue how to fetch dynamic pages like that as text...

Last edited by sitquietly (2012-02-03 20:56:44)

Offline

#2 2012-02-03 21:28:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: how to fetch a package's commit messages as text?

Offline

#3 2012-02-03 22:33:52

sitquietly
Member
From: On the Wolf River
Registered: 2010-07-12
Posts: 220

Re: how to fetch a package's commit messages as text?

Yes, of course, and it may be helpful if I have to dig into it's code, but by itself it gives markup (colorized text intended for a terminal emulator) rather than plain text.  If I dump its output into vim I still have what looks like trash.  I could filter out the markup.  Argh.

Any other help out there??

Offline

Board footer

Powered by FluxBB