[devscripts] 01/01: origtargz: Allow invocation from subdirectory. (Closes: #702636)

Christoph Berg myon at debian.org
Sat Sep 30 18:52:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch master
in repository devscripts.

commit 3e295c836b879225e0e0e9a341a8933da4a1c60d
Author: Christoph Berg <myon at debian.org>
Date:   Sat Sep 30 20:51:57 2017 +0200

    origtargz: Allow invocation from subdirectory. (Closes: #702636)
---
 debian/changelog     | 3 +++
 scripts/origtargz.pl | 1 +
 2 files changed, 4 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a67f435..dd2ecc7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,9 @@ devscripts (2.17.11) UNRELEASED; urgency=medium
   * debian/control: Add missing entry in package long description
     for reproducible-check.
 
+  [ Christoph Berg ]
+  * origtargz: Allow invocation from subdirectory. (Closes: #702636)
+
  -- Chris Lamb <lamby at debian.org>  Wed, 27 Sep 2017 13:24:39 +0100
 
 devscripts (2.17.10) unstable; urgency=medium
diff --git a/scripts/origtargz.pl b/scripts/origtargz.pl
index 9e971b5..54d788a 100755
--- a/scripts/origtargz.pl
+++ b/scripts/origtargz.pl
@@ -195,6 +195,7 @@ pod2usage({-exitval => 3}) if (@ARGV > 0 or $unpack !~ /^(no|once|yes)$/);
 
 my ($package, $version, $origversion, $fileversion);
 
+chdir ".." if (! -f "debian/changelog" and -f "../debian/changelog");
 open F, "debian/changelog" or die "debian/changelog: $!\n";
 my $line = <F>;
 close F;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list