[opensuse-buildservice] negation of buildconfig Substitute does not work

Hallo. In GNOME:STABLE we have updated metacity and we need to negate global 10.2 rule: Substitute: metacity-devel metacity "Substitute: !metacity-devel" did not help and build still rewrites metacity-devel to metacity. I am just now going to use a work-around proposed by darix: Substitute: metacity-devel metacity-devel Is it possible to fix https://bugzilla.novell.com/show_bug.cgi?id=332132 in the same script as well? -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Fri, Oct 19, 2007 at 05:01:23PM +0200, Stanislav Brabec wrote:
In GNOME:STABLE we have updated metacity and we need to negate global 10.2 rule: Substitute: metacity-devel metacity
"Substitute: !metacity-devel" did not help and build still rewrites metacity-devel to metacity.
Hmm, I don't see why, the code looks good to me: $ll = shift @l; if ($ll eq '!*') { $config->{'substitute'} = {}; } elsif ($ll =~ /^!(.*)$/) { delete $config->{'substitute'}->{$1}; } else { $config->{'substitute'}->{$ll} = [ @l ]; }
I am just now going to use a work-around proposed by darix: Substitute: metacity-devel metacity-devel
I'd prefer the more clean '!req', but such a substitute will also do the trick.
Is it possible to fix https://bugzilla.novell.com/show_bug.cgi?id=332132 in the same script as well?
It's possible to fix it, but it's not the same script ;-) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Friday 19 October 2007 17:14, Michael Schroeder wrote:
Hmm, I don't see why, the code looks good to me:
$ll = shift @l; if ($ll eq '!*') { $config->{'substitute'} = {}; } elsif ($ll =~ /^!(.*)$/) { delete $config->{'substitute'}->{$1}; } else { $config->{'substitute'}->{$ll} = [ @l ]; } I assume all values in @l are trimmed?! Otherwise whitespaces might cause trouble here.
Klaas -- Klaas Freitag Architect OPS/IPD SUSE LINUX Products GmbH - Nuernberg --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Klaas Freitag
-
Michael Schroeder
-
Stanislav Brabec