From a647d08d43fe1eb9970ed903c9bb99b098ca8ff1 Mon Sep 17 00:00:00 2001
From: Glenn Proctor <gp1@sanger.ac.uk>
Date: Fri, 22 Apr 2005 09:53:19 +0000
Subject: [PATCH] Reflect the fact that delete_existing is now a separate
 method in BasicMapper.pm

---
 misc-scripts/xref_mapping/xref_mapper.pl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/misc-scripts/xref_mapping/xref_mapper.pl b/misc-scripts/xref_mapping/xref_mapper.pl
index bbb6278c80..a9f13eda97 100644
--- a/misc-scripts/xref_mapping/xref_mapper.pl
+++ b/misc-scripts/xref_mapping/xref_mapper.pl
@@ -186,6 +186,9 @@ $mapper->xref($xref); # attach xref object to mapper object
 print "\nDumping xref & Ensembl sequences\n";
 $mapper->dump_seqs($location);
 
+print "\nDeleting old data\n" if ($deleteexisting);
+$mapper->delete_existing() if ($deleteexisting);
+
 print "\nChecking external_db table\n" if ($upload);
 $mapper->upload_external_db() if ($upload);
 
@@ -196,7 +199,7 @@ print "\nParsing mapping output\n";
 $mapper->parse_mappings();
 
 print "\nUploading xrefs\n" if ($upload);
-$mapper->do_upload($deleteexisting) if ($upload);
+$mapper->do_upload() if ($upload);
 
 
 print STDERR "*** All finished ***\n";
-- 
GitLab