You are not logged in.
Pages: 1
pacman -Qc does nothing, so I wrote a bash script to scrape the commit message.
Might be useful to someone. Is likely to break. Could definately be done better.
#!/bin/bash
for pkgname in $@
do
pkgver="$( pacman -Q "$pkgname" | sed -e 's/^.* //' )"
if [[ -z "$pkgver" ]]
then
continue
fi
echo -e "\033[1m$pkgname $pkgver:\033[0m"
if pacman -Si "$pkgname" | head -n 1 | grep -q community
then
baseurl="https://projects.archlinux.org/svntogit/community.git/log/trunk?h=packages/"
else
baseurl="https://projects.archlinux.org/svntogit/packages.git/log/trunk?h=packages/"
fi
commiturl="$( curl -s "$baseurl$pkgname" | grep "upgpkg: $pkgname $pkgver" |\
sed -Ee "s|.*href='([^']*)'.*|https://projects.archlinux.org\1|" -e 's/amp;//' )"
if [[ -z "$commiturl" ]]
then
echo not found
continue
fi
curl -s "$commiturl" | grep -Pzo "(?s)class='commit-msg'>.*?</div>" | head -n -3 | sed -e "s/^class='commit-msg'>//"
done
Offline
Hmm, that is quite useful, it's indeed really too bad most packages have no changelogs.
Last edited by Spider.007 (2014-11-14 18:37:17)
Offline
Mod note: Moved to Community Contributions
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Pages: 1