From 9ae25e28a779fa7d773814ff174906b59d519a74 Mon Sep 17 00:00:00 2001
From: Jan-hinnerk Vogel <jhv@sanger.ac.uk>
Date: Fri, 10 Jun 2005 16:43:09 +0000
Subject: [PATCH] sub md5sum changend - check added if file exists

---
 misc-scripts/xref_mapping/XrefParser/BaseParser.pm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
index dc53b256fb..5992b0f64f 100644
--- a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
+++ b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
@@ -607,6 +607,14 @@ sub dbi {
 sub md5sum {
 
   my $file = shift;
+
+  unless (-e $file) {
+	print "\n\nOOOPS ! Can't find file $file - you have to download it again. \n\n" ; 
+        print " SKIPPING $file\n" ; 
+        sleep(10) ; 	
+	return ; 
+  }
+
   open(FILE, $file);
   binmode(FILE);
   my $md5 = Digest::MD5->new->addfile(*FILE)->hexdigest();
-- 
GitLab