Mailinglist Archive: opensuse-buildservice (306 mails)

< Previous Next >
[opensuse-buildservice] My method to disable relsync rebuild on OBS
  • From: Jian Lee <lijian.gnu@xxxxxxxxx>
  • Date: Tue, 26 Jan 2010 18:05:18 +0800
  • Message-id: <201001261805.18268.lijian.gnu@xxxxxxxxx>
Hi, everybody

Many people who have setup obs-server at localhost would have puzzle
about relsync rebuild. Many times we doesn't need rebuild packages.

I'm want to share my idea that disable relsync rebuild on OBS.

(I'm not use diff, but paste code directly, because who need it known
it, :-))

(chinese doc can find on
http://jianlee.ylinux.org/Computer/Server/obs_install_1.7.html#sec9)

Modified /usr/lib/obs/server/bs_sched . 2 places:


1.

----------------------
4255 my @diff = diffsortedmd5(0, \@meta, \@new_meta);

4256 # begin modfield : skip rebuild for success packages when
meta change
4257 if (grep {$packid eq $_}
ls("$reporoot/$prp/$myarch/:logfiles.success")) {
4258 #print " - $packid ($packtype)\n";
4259 #print " meta change, but don't rebuild on my obs!";
4260 $packstatus{$packid} = 'done'; # Import! if doen't set, it
would be "unknown"!
4261 next;
4262 }# end modifield

4263 print " - $packid ($packtype)\n";
4264 print " $_\n" for @diff;
4265 print " meta change, start build\n";
4266 $reason = { 'explain' => 'meta change', 'packagechange' =>
sortedmd5toreason(@diff) };
===============================================


2.

-------------------------------
4076 if (@blocked) {

4077 # start modifield: skip success package when blocked
4078 if (grep {$packid eq $_}
ls("$reporoot/$prp/$myarch/:logfiles.success")) {
4079 #print " - $packid ($packtype)\n";
4080 #print " $packid already success ,don't blocked\n";
4081 $packstatus{$packid} = 'done';
4082 next;
4083 } #end modifield

4084 # print " - $packid ($packtype)\n";
4085 # print " blocked\n";
4086 my $useforbuildenabled = enabled($repoid, $pdata-
{'useforbuild'}, $prjuseforbuildenabled);
4087 $notready{$pname} = 1 if $useforbuildenabled;
4088 $unfinished{$pname} = 1;
4089 $packstatus{$packid} = 'blocked';
4090 $packerror{$packid} = join(', ', @blocked);
4091 next;
4092 }
============================


Thanks, but my suggestion is use relsycn rebuild function on obs, it's a
good feature!


----

Jian Lee [ http://jianlee.ylinux.org ]
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >