[fedora-java] db merging script

Phil Muldoon pmuldoon at redhat.com
Tue Mar 22 23:13:16 UTC 2005


On Tue, 2005-03-22 at 14:46 -0800, Anthony Green wrote:
> On Tue, 2005-03-22 at 16:41 -0600, Phil Muldoon wrote:
> > I think it was Tom who suggested we should have some structure below the
> > location of the db location to allow for name collisions. Will the:
> > 
> > (cd $DB.d; ls . | xargs gcj-dbtool -m $DB)
> > 
> > account for 
> > 
> > $DB.d/foo/foo.jar.so
> > 
> > and 
> > 
> > $DB.d/bar/bar.jar.so
> > 
> > and so on?
> 
> No, but I think we should be using versioned names so, in theory, there
> should be no collisions.


Okay, my example was wrong (s/jar.so/db), but I take your point. Right
now appending version is something we don't do (because we can safely
assume with our db and our location we won't have collision). Something
to keep in mind. As long as it is tied with the version of the rpm then
it should be cool. Maybe there are other issues here, but I can't think
of any.

I can't be sure but I think the merge automatically deletes the
destination "merge to" database, so there theoretically could be an
issue with the size of the argument list provided from the ls . to xargs
there. Not sure if this is something we should worry about in reality or
not 

Regards

Phil






More information about the fedora-devel-java-list mailing list