On Wed, Dec 07, 2011 at 05:49:14PM +0100, Robert Schiele wrote:
On Wed, Dec 7, 2011 at 12:18 PM, Michael Schroeder
wrote: Dunno, I'd prefer to just copy the MD5SUM blob (if available).
So, I added the following code after the code you quoted and found that it seems to resolve the problem:
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); link("$ltreedir/$lrev->{'srcmd5'}-MD5SUMS", "$treedir/$lrev->{'srcmd5'}-MD5SUMS"); }
Is this what you had in mind? Do you see a problem with that code or do you think it should generally work that way?
Yeah, something like that. I would use readstr/writestr instead of linking it, just to be on the safe side (no other trees are linked). But that's just a matter of taste. M. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org