Blob Blame Raw
From e13eaad1c972cd7540bb5a3ba1ca24bc12cfb5e9 Mon Sep 17 00:00:00 2001
From: Antonio Terceiro <terceiro@debian.org>
Date: Tue, 5 Jan 2016 13:03:54 -0200
Subject: uscan: fix regression in uscan when --destdir is set

Closes: #809662

Patch by Alex Mestiashvili <mailatgoogl@gmail.com>
---
 debian/changelog | 9 +++++++++
 scripts/uscan.pl | 4 ++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index f1a7014..3e704b0 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -3702,8 +3702,8 @@ EOF
     }
     my $umd5sum = Digest::MD5->new;
     my $omd5sum = Digest::MD5->new;
-    open (my $ufh, '<', "../${newfile_base}") or die "Can't open '${newfile_base}': $!";
-    open (my $ofh, '<', "../${target}") or die "Can't open '${target}': $!";
+    open (my $ufh, '<', "${destdir}/${newfile_base}") or die "Can't open '${destdir}/${newfile_base}': $!";
+    open (my $ofh, '<', "${destdir}/${target}") or die "Can't open '${destdir}/${target}': $!";
     $umd5sum->addfile($ufh);
     $omd5sum->addfile($ofh);
     close($ufh);
-- 
cgit v0.12