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 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.

Cheers,

Matt
-- 
Matt Wilson
Founding Engineer
rPath, Inc.
msw@xxxxxxxxx


[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