[devscripts] 01/01: uscan: Use cwd() instead of getcwd()

James McCoy jamessan at debian.org
Thu Jun 16 00:26:53 UTC 2016


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

jamessan pushed a commit to branch master
in repository devscripts.

commit 4cfc643290d1093b759615c578a9adfabfed3a6c
Author: James McCoy <jamessan at debian.org>
Date:   Wed Jun 15 20:26:03 2016 -0400

    uscan: Use cwd() instead of getcwd()
    
    cwd is already being imported and is the same behavior as getcwd.
    
    Closes: #827422
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog | 2 ++
 scripts/uscan.pl | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ac59429..a07a472 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ devscripts (2.16.6) UNRELEASED; urgency=medium
   * uscan:
     + Fix typo of "passive" in description of PASV FTP mode.  Thanks to Yann
       Dirson for the patch.  (Closes: #826321)
+    + Fix an “undefined subroutine” error by using the, already imported, cwd
+      function instead of getcwd.  (Closes: #827422)
   * dd-list:
     + Require an argument for ‘-s’ option, as intended, fixing a compatibility
       issue with Perl 5.24's Getopt::Long.  Thanks to Niko Tyni for the patch.
diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index 31075e4..637e78b 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -3380,7 +3380,7 @@ EOF
     my $downloader = sub {
 	my ($url, $fname, $mode) = @_;
 	if ($mode eq 'git') {
-	    my $curdir = getcwd();
+	    my $curdir = cwd();
 	    $fname =~ m%(.*)/([^/]*)-([^_/-]*)\.tar\.(gz|xz|bz2|lzma)%;
 	    my $dst = $1;
 	    my $pkg = $2;

-- 
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