Re: Problem with some RPM'sCurrent-server digest, Vol 1 #197 - 7 msgs

Hunter Matthews <[email protected]> 13 Nov 2002 12:10:46 -0500
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
Tell those IBM moks to fix their damn packages too.

Yes, current just does a text replace on the rpm name to get the header
name.  I'll add that to the 1.4.3 todo list.

<Sigh>

On Wed, 2002-11-13 at 04:08, Klaus Steinberger wrote:
> Hello,
> 
> 
> >>Fetching rpm headers...
> >>There was a fatal error communicating with the server.  The message was:
> >>404: "Not Found" while attempting to get
> >>$RHN/lmugar-i386-7.3/getPackageHeader/TIVsm-BA-5.1.5-0.i386.hdr
> > 
> > 
> > Try running Johns query against these rpms, and see what you get:
> > 
> >   rpm -qp --queryformat "%{NAME}-%{VERSION}-%{EPOCH}\n" <filename>
> 
> [k2@bagheera tivoli]$ rpm -qp --queryformat\
> "%{NAME}-%{VERSION}-%{EPOCH}\n" TIVsm-API.i386.rpm
> TIVsm-API-5.1.5-(none)
> [k2@bagheera tivoli]$
> 
> 
> Hunter said in a previous mail, that current does of course the right 
> thing and asks the rpm for version, package name etc.
> 
> But I suspect that the filename for the .hdr File, which would be stored 
> inside the getPackageHeader directory is created based on the filename. 
> I use Version 1.4.2:
> 
> [root@etprd02 etc]# rpm -q current
> current-1.4.2-1
> [root@etprd02 etc]#
> 
> 
> When I stored the .rpm Files as they came from IBM in the channel, I got 
> the following filenames:
> 
> TIVsm-API.i386.rpm
> 
> and inside getPackageHeader:
> 
> TIVsm-API.i386.hdr
> 
> 
> I then renamed the rpm's so I got:
> TIVsm-API-5.1.5-0.i386.rpm
> 
> and inside getPackageHeader:
> 
> TIVsm-API-5.1.5-0.i386.hdr
> 
> 
> 
> My proposal would be to created the filenames for the .hdr files in the 
> getPackageHeader directory on basis of the rpm query instead of 
> filename. This would solve inconsistencies between filenames of .rpm'S 
> and their internal data.
> 
> Sincerly,
> Klaus Steinberger
> 
> 
> -- 
> Klaus Steinberger         Maier-Leibnitz Labor
> Phone: (+49 89)289 14287  Am Coulombwall 6, D-85748 Garching, Germany
> FAX:   (+49 89)289 14280  EMail: [email protected]
> URL: http://www.physik.uni-muenchen.de/~k2/
> 
> In a world without Walls and Fences, who needs Windows and Gates
> 
> _______________________________________________
> Current-server mailing list
> [email protected]
> http://lists.dulug.duke.edu/mailman/listinfo/current-server
> 
> 
-- 
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.