RPM Community Forums

Mailing List Message of <rpm-devel>

Fwd: Adding/removing .arch.rpm from arguments transparently?

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 20 Sep 2008 - 17:34:25 CEST
Message-id: <67017F6D-C6F4-4AD9-A149-A90CB5EF0575@mac.com>


Begin forwarded message:

> From: Jeff Johnson <n3npq@mac.com>
> Date: September 20, 2008 11:13:09 AM EDT
> To: rpm-devel@rpm5.org
> Subject: Adding/removing .arch.rpm from arguments transparently?
>
> (aside) I was just reminded of this while writing a test script.  
> One always needs
> both the rpm file name and the rpm package name as shell envvars.
>
> rpm installs take package file names as arguments, while most
> of the rest of rpm arguments use package, not package file, names  
> as arguments.
>
> Should I dress up arguments to permit package names as install  
> arguments,
> and package file names (stripping .arch.name from argument)  
> everywhere else?
>
> The only complexity I see is detecting (and failing as error) if  
> the glob
> on a package name (without .arch.rpm) used as an install argument  
> to pin down the
> file to be installed happens to find more than one candidate match.
>
> There's an ancient rpm RFE from Michael Jennings on exactly this  
> issue.
>
> What say ye?
>
> 73 de Jeff
Received on Sat Sep 20 17:34:42 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.