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

Re: Idea for website



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 madboa com>




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