Package list barrnap / 5be5b6b1-a539-486b-8876-8b2fa895801d/main debian / patches / use_debian_dirs
5be5b6b1-a539-486b-8876-8b2fa895801d/main

Tree @5be5b6b1-a539-486b-8876-8b2fa895801d/main (Download .tar.gz)

use_debian_dirs @5be5b6b1-a539-486b-8876-8b2fa895801d/mainraw · history · blame

Description: Make sure we use correct paths for Debian policy
Index: barrnap/bin/barrnap
===================================================================
--- barrnap.orig/bin/barrnap
+++ barrnap/bin/barrnap
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
 use strict;
 use warnings;
 use List::Util qw(max);
@@ -14,6 +14,9 @@ my $DESC = "rapid ribosomal RNA predicti
 my $AUTHOR = 'Torsten Seemann';
 my $URL = 'https://github.com/tseemann/barrnap';
 my $DBDIR = "$FindBin::RealBin/../db";
+if ( ! -e $DBDIR) {
+  $DBDIR = "/usr/share/barrnap/db";
+}
 my $OPSYS = $^O;
 my $BINDIR = "$FindBin::RealBin/../binaries/$OPSYS";