Re: Try to teach pkgorder to get its white out from an external file...

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

 



On 10/17/06, Matt Wilson <msw@xxxxxxxxx> wrote:
On Tue, Oct 17, 2006 at 02:26:38PM -0400, James Olin Oden wrote:
>   pam>coreutils \
>   openldap>cyrus-sasl \
>   openldap>cyrus-sasl-md5 \
>   openjade>docbook-dtds \
...
>   lvm2>kernel-PAE
>
> Which in format looks exactly like the value of the
> %_dependency_whiteout macro we set

Not quite.  Even in """...""", \ is an escape char.  This means that
the whiteout variable becomes more like:

>>> print whiteout

       pango-gtkbeta-devel>pango-gtkbeta        XFree86>Mesa
       xorg-x11>Mesa                           compat-glibc>db2
       compat-glibc>db1                        pam>initscripts
       initscripts>sysklogd

You don't need to include the literal \ in the file -- when you read
it in with the \ there, you will literally get:
>>> print whiteout
  pam>coreutils \
  openldap>cyrus-sasl \
  openldap>cyrus-sasl-md5 \
  openjade>docbook-dtds \

So - nuke the \s from your file, or use "whiteout = whiteout.replace('\\', '')"
in the script.
Thanks Matt, that did it.  I'll send a cleaned up patch without the
debug output in a moment.

As an aside, one of things I would really like to see is the build of
anaconda be  more configuration driven.  This is just a little step in
that direction.

Thanks again...james


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux