Re: Re: and some more stuff..

Greg Kurtzer <[email protected]> Tue, 21 May 2002 18:13:33 -0700
Newsgroups gmane.linux.redhat.rpm.grab
Message-ID <[email protected]>
On Tue, May 21, 2002 at 11:54:48PM +0200, Kimiko Koopman wrote:
> Eh, now that you mention it, I was a bit condescending there. My apologies.

No problem... I took it in good humor anyway! Hey, nobody knows it better then
I that I suck at spelling, and I am thankful that you were nice enough to send
in a patch. (which I will look at this evening).

> It's not a problem that GRAB tries to build its own dependency (sic) database.
> The problem is that the -> and <- aren't very informative. It looks as if
> nothing is happening, while the meters do show traffic. Maybe GRAB could
> explain better what it is doing at that time, instead of the -> and <-?

Hrmmm... I just thought the <-,-> looked cool... Any recommendations on
verbage? 'building', 'comparing'? That is pretty boring, and wouldn't look as
cool at runtime... Actually it may even look messy and harder to read when
things speed up.

Unfortuantly a download meter I think is out of the question because I am
doing this via RPM directly, and headers are cached in memory. 

How about as output verbage:
-Building '<-', and Comparing '->' dependancies
instead of:
-Searching for unresolved dependancies

Any/all thoughts are welcome...

> I'm running RawHide (more or less), with rpm version 4.1-0.15. rpm itself
> doesn't show these options when asked for --help and gives this error
> when invoked as rpm --checksig --nopgp [random_package_file] :
> --nopgp: unknown option
> The same thing happens with --nogpg. Because it doesn't check the
> package's signature then, GRAB registers it as a failure and recommends
> using the --redownload option.

Hrmmm... if I do a --checksig without the --nogpg on my system I get an error:

[root@altruistic RPMS]# rpm --checksig zlib-1.1.3-25.7.i386.rpm
zlib-1.1.3-25.7.i386.rpm: md5 (GPG) NOT OK (MISSING KEYS: GPG#DB42A60E)
[root@altruistic RPMS]# echo $?
1
[root@altruistic RPMS]# rpm --checksig zlib-1.1.3-25.7.i386.rpm  --nogpg
zlib-1.1.3-25.7.i386.rpm: md5 OK
[root@altruistic RPMS]# echo $?
0

I guess a configuration option in /etc/grab/config is the only way out... 
"check gpg = yes/no". I will also make it a program arg for people that don't
like to change the config file (hampers autoupdates). Sound acceptable?

Thanks again!
Greg
-- 
Greg Kurtzer
[email protected]
http://www.runlevelzero.net
LINUX,... The choice of a GNU generation!
:wq