[Yum] yumgroups.pl (Was: Groups & Repositories - Best Way to Setup?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seth, thanks for the quick reply & input :)  See below...

On Mon, 2003-09-15 at 10:52, seth vidal wrote:
> Hey,
>  A couple of things:
> 
> 1. rpm -qp --qf "%{name}" file.rpm
> 
> will return just the packagename
> 
I thought this would be easier, but then, I didn't want the program to
rely on another program (rpm) for one of its main functions.  As long as
people stick with the naming conventions (hmmmm, yeah, that may not
happen) the reg ex. I'm using should work OK (and maybe faster than a
call to rpm?).

> 2. using one of the perl xml libs to build up the stuff might be a 'more
> correct' way in the long run
Yup, I agree compeltely with this.  Only problem is, I didn't have the
XML module installed, and figured for a first run this would work OK.  I
plan to change this in the future - I just wanted to get the script
working as fast as possible.

> 
> 3. Thanks - this is actually incredibly helpful for people building
> yumgroups and just the sort of thing a lot of folks will be find useful.
> 
> thanks for the suggestion and for the code.
Anything that helps me be lazy in the long run is good in my mind :)

-Jeff


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux