Install Requires(post|pre) and PreReq into the chroot
authorFrank Lichtenheld <flichtenheld@astaro.com>
Sun, 22 Apr 2012 17:58:28 +0000 (19:58 +0200)
committerAdrian Schröter <adrian@suse.de>
Mon, 21 May 2012 12:55:43 +0000 (14:55 +0200)
This is needed for post-build-checks to be able to execute
the package scripts and makes the behaviour of build
consistent with OBS.

expanddeps

index c0feb04..7bd51e1 100755 (executable)
@@ -258,6 +258,7 @@ if ($spec) {
   $packvers = $d->{'version'};
   $subpacks = $d->{'subpacks'};
   @packdeps = @{$d->{'deps'} || []};
+  push(@packdeps, @{$d->{'prereqs'}}) if $d->{'prereqs'};
 }
 
 Build::readdeps($cf, undef, \%repo);