Re: Re: List Archives and Red Hat 9
"Troy Johnson" <[email protected]> Sun, 27 Apr 2003 23:41:04 -0500
| Newsgroups | gmane.linux.redhat.rpm.grab |
|---|---|
| Message-ID | <[email protected]> |
Hi Greg,
I looked at grab-2.4 and found it only checks for rpm versions 4.0 and 4.1. Red Hat 9 has version 4.2:
[/var/ftp/pub/redhat]$ ls */RedHat/RPMS/rpm-4*
7.3/RedHat/RPMS/rpm-4.0.4-7x.18.i386.rpm
8.0/RedHat/RPMS/rpm-4.1-1.06.i386.rpm
9/RedHat/RPMS/rpm-4.2-0.69.i386.rpm
I looked at 'rpm --help' and saw that the options were the same as those listed for RHL 8.0, so I made some changes and they seemed to work (moved /etc/grab/config, ran grab, it puts in "--nosignature --nodigest" for "rpm opts"). I made this diff of the changes from grab 2.4:
==================================================
1369c1369
< } elsif ( $rpmversion =~ /^4.1/ ) {
---
> } elsif ( $rpmversion =~ /^4\.[12]/ ) {
==================================================
Thank you again for grab!
Troy
-----Original Message-----
From: Troy Johnson <[email protected]>
To: [email protected]
Date: Thu, 17 Apr 2003 13:11:43 -0500
Subject: Re: [Grab Mailing List] List Archives and Red Hat 9
Hi Greg,
Greg Kurtzer wrote:
> Move your /etc/grab/config file aside, and just run 'grab' with no arguments.
> It will rewrite the config file, and will try to automatically figure out what
> values to use there.
I did this and grab replaced '/etc/grab/config' with a version that had
the erroneous comment line in it (as it was before, with "rpm opts =
#rpm opts#"). I moved my modified config back to '/etc/grab/config' and
it works. I forgot to mention this is a new install of RH9, not an upgrade.
> I have been thinking of having RPM handle the /etc/grab/* files instead of
> GRAB (so the config files would be part of the RPM). Does anybody have any
> thoughts on this?
I don't know for sure, as I don't know exactly what would be gained or
lost by this change, but it may just move the possibility for error from
'grab' to the RPM build config files. I like simplicity, so I guess I'd
rather look at 'grab' alone for possible errors.
Please assign the lightest weight possible to my comments as I am
relatively new to 'grab'.
Thank you much,
Troy
_______________________________________________
Grab mailing list
[email protected]
http://www.runlevelzero.net/mailman/listinfo/grab