[opensuse-buildservice] [PATCH] [backend] copy missing tree meta data to linked projects
In case of special meta data like after source service runs the current code does not always transfer the meta data to linked projects completely. This change copies missing meta data files to linked projects to fix this situation. --- src/backend/bs_srcserver | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/backend/bs_srcserver b/src/backend/bs_srcserver index b563266..acf6124 100755 --- a/src/backend/bs_srcserver +++ b/src/backend/bs_srcserver @@ -726,6 +726,13 @@ sub getrev { my $files = lsrev($lrev); copyfiles($projid, $packid, $lprojid, $packid, $files); addmeta($projid, $packid, $files) if $BSConfig::nosharedtrees; + my $treedir = $BSConfig::nosharedtrees ? "$treesdir/$projid/$packid" : "$treesdir/$packid"; + my $ltreedir = $BSConfig::nosharedtrees ? "$treesdir/$lprojid/$packid" : "$treesdir/$packid"; + if (-e "$ltreedir/$lrev->{'srcmd5'}-MD5SUMS" && ! -e "$treedir/$lrev->{'srcmd5'}-MD5SUMS") { + mkdir_p($ltreedir); + my $meta = readstr("$ltreedir/$lrev->{'srcmd5'}-MD5SUMS"); + writestr("$uploaddir/$$", "$treedir/$lrev->{'srcmd5'}-MD5SUMS", $meta); + } $lrev->{'originproject'} ||= $lprojid; $lrev->{'project'} = $projid; return $lrev; -- 1.7.7 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Dec 9, 2011 at 9:25 AM, Robert Schiele <robert.schiele@nokia.com> wrote:
In case of special meta data like after source service runs the current code does not always transfer the meta data to linked projects completely. This change copies missing meta data files to linked projects to fix this situation.
BTW: This has been tested in my system for one day now and so far it seems to work in a reliable way and has not caused any negative side effects. Thus if you want to make the new source service mechanism to work in combination with linkedbuild projects you might want to apply that for the 2.3 release. Robert -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Dec 09, 2011 at 09:56:23AM +0100, Robert Schiele wrote:
BTW: This has been tested in my system for one day now and so far it seems to work in a reliable way and has not caused any negative side effects. Thus if you want to make the new source service mechanism to work in combination with linkedbuild projects you might want to apply that for the 2.3 release.
Applied to master. M. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Michael Schroeder
-
Robert Schiele
-
Robert Schiele