Mailinglist Archive: opensuse-buildservice (140 mails)

< Previous Next >
Re: [opensuse-buildservice] [PATCH] [backend] add "hostarch" to buildinfo if present in buildconfig
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Sat, 14 Jul 2012 21:25:13 +0200
  • Message-id: <4109930.6ygXkYifM1@scherben>
Am Samstag, 14. Juli 2012, 20:42:28 schrieb Marcus Huewe:
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).

Thanks, applied to master and 2.3 branch. Well, at least on my notebook, github
seems
not to allow pushs atm ....


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') {

--
Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx

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

< Previous Next >
References