RE: up2date trick

Hunter Matthews <[email protected]>
Newsgroups gmane.network.up2date.current.devel
Message-ID <1017157508.5586.253.camel@kea>
On Tue, 2002-03-26 at 08:54, Dennis Pinckard wrote:

> I set up a Current server last week for the first time and it works
> great.  I also wanted to have my current server as close to
> up-to-date with errata as possible.  For me, a daily update would
> suffice, so I created a small shell script, "update_redhat_errata",
> and placed it in /etc/cron.daily

> Basically, it rsync's a mirror's errata packages with mine, then
> rebuilds the database.

This is what I do myself, I just do it by hand.

> Hunter, is there an faster/easier way to update the database?  I'll
> be honest, once it worked, I pretty much stopped reading
> documentation.

You and everyone else. :)



> # Update Current server's database
> # Is there an better way?
> #
> /etc/init.d/current stop
> /usr/sbin/cadmin -v create redhat-linux-i386-7.2
> /etc/init.d/current start

Right now, no. Again, Toby's SQL patch is being worked on by John and
myself. (Toby's patch has fewer problems than integrating a real backend
into a project that wasn't really setup for it)

That SQL patch can "add one package" and "update one package".

What someone needs to do, (which I will NOT, being focused on sql) is
take the channel.py file and export what it can already do to cadmin.

IE, add a cadmin update CHANNEL_NAME, if you were crafty. 

and just have the darn thing scan all the rpm dirs again, and update
from there. It would even be fairly fast.

You'd still have to down Current while cadmin ran - thats just not going
to be fixable with a file based backend - ever. But total time and total
disk churn could be reduced a lot.

If you know python somewhat well, and are willing to TRY, this should be
doable in an hour or two. I'm just _trying_ to get the 1.1 tree opened
up, and don't want to do that.

-- 
Hunter Matthews                          Unix / Network Administrator
Office: BioScience 145/244               Duke Univ. Biology Department
Key: F0F88438 / FFB5 34C0 B350 99A4 BB02  9779 A5DB 8B09 F0F8 8438
Never take candy from strangers. Especially on the internet.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.