RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm-5_4: rpm/scripts/ rpm.daily

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 25 Jan 2011 - 16:22:19 CET
Message-id: <26E343D6-4E37-436B-8961-D54AEE5192C3@mac.com>
This has the utterly predictable failure mode when PATH
isn't set (or is set differently) by cron.

Nuke rpm.daily (or handle through "distro" configuration tools)
is all that makes sense. rpm.daily is rather useless, always has been,
always will be.

The "forward" path will be to set up a distributed store with MongoDB,
and push package manifests into the distributed store. All that's needed
there (aside from the server infrastructure) is some modest thought
to create a per-host path (using a MAC address or a UUID).

Once the distributed store is in place, then --install/--update/--erase
modes can maintain up-to-the-instant package manifests for clients.
cron periodic manifest generation can never ever succeed, the data
will ALWAYS be out of date or otherwise unreliable.

73 de Jeff

On Jan 25, 2011, at 10:16 AM, Per Řyvind Karlsen wrote:

>  RPM Package Manager, CVS Repository
>  http://rpm5.org/cvs/
>  ____________________________________________________________________________
> 
>  Server: rpm5.org                         Name:   Per Řyvind Karlsen
>  Root:   /v/rpm/cvs                       Email:  pkarlsen@rpm5.org
>  Module: rpm                              Date:   25-Jan-2011 16:16:01
>  Branch: rpm-5_4                          Handle: 2011012515155500
> 
>  Modified files:           (Branch: rpm-5_4)
>    rpm/scripts             rpm.daily
> 
>  Log:
>    don't make path to rpm binary absolute
> 
>  Summary:
>    Revision    Changes     Path
>    1.3.12.2    +1  -1      rpm/scripts/rpm.daily
>  ____________________________________________________________________________
> 
>  patch -p0 <<'@@ .'
>  Index: rpm/scripts/rpm.daily
>  ============================================================================
>  $ cvs diff -u -r1.3.12.1 -r1.3.12.2 rpm.daily
>  --- rpm/scripts/rpm.daily	12 Jan 2011 22:02:42 -0000	1.3.12.1
>  +++ rpm/scripts/rpm.daily	25 Jan 2011 15:15:55 -0000	1.3.12.2
>  @@ -1,3 +1,3 @@
>   #!/bin/sh
> 
>  -/usr/bin/rpm -qa 2>&1 | sort > /var/log/rpmpkgs
>  +rpm -qa 2>&1 | sort > /var/log/rpmpkgs
>  @@ .
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> CVS Sources Repository                                rpm-cvs@rpm5.org
Received on Tue Jan 25 16:22:35 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.