Idea for website

Paul Heinlein heinlein at madboa.com
Wed Oct 1 18:02:01 UTC 2003


On Wed, 1 Oct 2003, Pekka Pietikainen wrote:

> Or am I the only one who grabs .src.rpm's all the time to figure out
> what exactly have they done this time? :-)

I imagine that everyone on this list has done it, one time or another.

It'd be pretty simple to architect:

* are there any new .src.rpm packages?

* oh, there are! cool:

  reposdir=/path/to/$ARCH/SRPMS
  htdocdir=/path/to/DocumentRoot/blah
  rpmqf='%{NAME}-%{VERSION}-%{RELEASE}'
  for pkg in $newsrcrpms; do
    newdir=$(rpm -q --qf "${htdocdir}/${rpmqf}" -p ${reposdir}/${pkg})
    mkdir ${newdir}
    cd ${newdir}
    rpm2cpio ${reposdir}/${pkg} | cpio -id
  done

:-)

--Paul Heinlein <heinlein at madboa.com>





More information about the fedora-devel-list mailing list