Mailinglist Archive: opensuse-buildservice (332 mails)

< Previous Next >
RE: [opensuse-buildservice] RE: question about package aggregate
  • From: <brook.hong@xxxxxxxxx>
  • Date: Fri, 23 Jul 2010 09:01:39 +0200
  • Message-id: <74F2BFCC65034E4BAB1856275FB128ED2732A3492B@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
I found you added on gitorious, like this " next if ($copysources == 0) &&
($r->{'name'} =~ /-debug(info|source)-[^-]+-[^-]+\.([a-zA-Z][^\.\-]*)\.rpm$/)"

But from my debugging log, I found $r->{'name'} doesn't end with version number
and rpm suffix.

For example, "libzip-util-debuginfo-0.9-24.3.i586.rpm" has a value as
"libzip-util-debuginfo" for $r->{'name'}.

It's also the same for debugsource package.

----------------
Best Regards,
Brook Hong


-----Original Message-----
From: ext Adrian Schröter [mailto:adrian@xxxxxxx]
Sent: Friday, July 23, 2010 2:37 PM
To: opensuse-buildservice@xxxxxxxxxxxx
Cc: Hong Brook (Nokia-MS/Beijing); prusnak@xxxxxxxxxxxx
Subject: Re: [opensuse-buildservice] RE: question about package
aggregate

On Friday 23 July 2010 04:57:26 brook.hong@xxxxxxxxx wrote:
Thanks Pavol.
I mean the command "rpmbuild -ba somepackage.spec".
Either webui or osc passes a -debug option to the build script, which
generates relevant macros for rpmbuild. Then rpmbuild generates those
debuginfo and debugsource packages.

Adrian, the aggregatepac operation does copy the debuginfo and
debugsource packages to target, here I added one line to skip them when
nosources flag is set.

okay, I have submitted a slightly different version with an exact match
for rpm packages.
I dunno how debian is handling debug packages at all.

Does anyone know how we can detect debug packages on debian ?

thanks
adrian

diff --git a/src/backend/bs_sched b/src/backend/bs_sched
index 5ef13bb..8392049 100755
--- a/src/backend/bs_sched
+++ b/src/backend/bs_sched
@@ -2906,6 +2906,7 @@ sub rebuildaggregate {
next unless $r->{'source'};
next if $abinfilter && !$abinfilter->{$r->{'name'}};
next if $jobbins{$r->{'name'}};
+ next if ($copysources == 0) && ($r->{'name'} =~ /-
debug(info|source)/);
$jobbins{$r->{'name'}} = 1;
my $basename = $abin;
$basename =~ s/.*\///;


--
Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >