diff options
author | Michael Schröder <mls@suse.de> | 2008-03-28 14:01:09 +0000 |
---|---|---|
committer | Michael Schröder <mls@suse.de> | 2008-03-28 14:01:09 +0000 |
commit | 7b7881e0b5561862274361f6d14ff9ab7b2a8baf (patch) | |
tree | d74d78a4ac3fb82ca953cf411a4020745c6f840c /Build.pm | |
parent | 7d5f9ec3deaba1a8ab1a0b5f50e50e46f613e106 (diff) | |
download | obs-build-7b7881e0b5561862274361f6d14ff9ab7b2a8baf.tar.gz obs-build-7b7881e0b5561862274361f6d14ff9ab7b2a8baf.tar.bz2 obs-build-7b7881e0b5561862274361f6d14ff9ab7b2a8baf.zip |
- define %nil macro
- work around some multiline macro problem
Diffstat (limited to 'Build.pm')
-rw-r--r-- | Build.pm | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -24,6 +24,7 @@ sub import { my $std_macros = q{ +%define nil %define ix86 i386 i486 i586 i686 athlon %define arm armv4l armv4b armv5l armv5b armv5tel armv5teb %define arml armv4l armv5l armv5tel @@ -216,7 +217,13 @@ sub read_config { # add rawmacros to our macro list if ($config->{'rawmacros'} ne '') { for my $rm (split("\n", $config->{'rawmacros'})) { - if ((@macros && $macros[-1] =~ /\\$/) || $rm !~ /^%/) { + if (@macros && $macros[-1] =~ /\\$/) { + if ($rm =~ /\\$/) { + push @macros, '...\\'; + } else { + push @macros, '...'; + } + } elsif ($rm !~ /^%/) { push @macros, $rm; } else { push @macros, "%define ".substr($rm, 1); @@ -433,6 +440,8 @@ sub addproviders { for my $rp (@rp) { for my $pp (@{$provides->{$rp} || []}) { if ($pp eq $rn) { + # debian: unversioned provides do not match + next if $config->{'type'} ne 'spec'; push @p, $rp; last; } |