aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2017-02-19 14:11:37 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-19 15:23:46 -0800
commit4a550e4d7d5ec11640bb511d28097fa7644cdd3b (patch)
treef89ca8ee5c890a1d185a1f2c8aea8b3e1a0227b6 /scripts
parentfc55620d2d2942f7f8d95b5e73f8b58ec17ffdb9 (diff)
downloadsubsurface-4a550e4d7d5ec11640bb511d28097fa7644cdd3b.tar.gz
Properly handle dive sites loaded from XML
We used to always create a new dive site structure when loading dive site data from XML. That is completely bogus, because it can (and does) create duplicate dive sites with the same UUID. Which makes the whole UUID pointless. So instead, look up the existing dive site associated with the UUID loaded from the XML, and try to merge the data properly if we already had dive site information for that UUID. Reported-by: Alessandro Volpi <volpial@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions