Mailinglist Archive: opensuse-buildservice (140 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] [backend] add "hostarch" to buildinfo if present in buildconfig
Hi,

I just wrote a small patch which adds the hostarch to the buildinfo
if it is present in the buildconfig. Currently osc also has some codepaths
which check for a hostarch element (but it was never added to the buildinfo).


Marcus

---
src/backend/bs_repserver | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/backend/bs_repserver b/src/backend/bs_repserver
index 0f20f11..e06b1f9 100755
--- a/src/backend/bs_repserver
+++ b/src/backend/bs_repserver
@@ -2100,6 +2100,7 @@ sub getbuildinfo {
$ret->{'package'} = $packid if defined $packid;
$ret->{'downloadurl'} = $BSConfig::repodownload if defined
$BSConfig::repodownload;;
$ret->{'arch'} = $arch;
+ $ret->{'hostarch'} = $bconf->{'hostarch'} if $bconf->{'hostarch'};
$ret->{'path'} = $repo->{'path'} || [];
my @prp = map {"$_->{'project'}/$_->{'repository'}"} @{$repo->{'path'} ||
[]};
if ($packtype eq 'kiwi') {
--
1.7.3.4

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups