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

Re: [scl.org] No sources on softwarecollections.org?

I suppose that reposync is able to do this perfectly for You, isn't it?

----- Original Message -----
From: "R P Herrold" <herrold owlriver com>
To: sclorg redhat com
Sent: Monday, July 14, 2014 7:23:46 PM
Subject: [scl.org] No sources on softwarecollections.org?

On Mon, 14 Jul 2014, Jakub QB Dorňák wrote:

> You are right, they are not easy to find, because there are no extra links to them.
> But if You click "browse", You may find the SRPMs in the repository. Once You install the RPM with YUM repository configuration, You may get SRPMs using yumdownloader.

would it be possible to simply expose a durable target 
pointing to SRPMs, or of the entire archive [e.g., 1], which 
something like this mirroring script might then transit:

# lftp -f sclorg.conf

where sclorg.conf contains

mirror -c -e \
        -I "*/SRPMS/*"                                  \
        -I "*/sources/*"                                \
	-I "*src.rpm"					\
	-X "*"						\
	https://www.softwarecollections.org/archive/	\


which harvests just SRPMs. 

-- Russ herrold

[1] https://www.softwarecollections.org/archive/

ps -- the content in that new target may consist entirely of 
links and be made by something like this, automatically

#	sco mirror target builder fragment
#	License: gplv3+
#	Copyright: (c) 2014 R P Herrold
#	reports: info owlriver com
#	suitable for cron
[ ! -e ${DESTDIR} ] && mkdir -p ${DESTDIR}
for i in ` find ${ROOTDIR} -type d | grep -v "^[.]"` ; do
	BASDIR=`dirname $i`
	HASPATH=`echo "${BASDIR}" | sed -e  "s ${ROOTDIR}@${DESTDIR} g"`
	[ ! -e ${HASPATH} ] && mkdir -p ${HASPATH}
	for j in `find ${BASDIR} -maxdepth 1 -name "*.rpm"` ;
		[ ! -e $j ] && ln -s $j ${HASPATH}
#	add inverse logic to rm links to files aged away out 
#	out of the source tree

I don't speculate as to the 'aging away' process as I don't 
quite understand what the process is, to be able to graft into 

SCLorg mailing list
SCLorg redhat com

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