[debhelper-devel] [debhelper] 02/02: Buildsystem.pm: Use the new builtin chdir support in print_and_doit*

Niels Thykier nthykier at moszumanska.debian.org
Tue Sep 19 12:54:27 UTC 2017


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 00aa0bca1bb5741be267fb67cce6a1ecb716d239
Author: Niels Thykier <niels at thykier.net>
Date:   Tue Sep 19 12:41:24 2017 +0000

    Buildsystem.pm: Use the new builtin chdir support in print_and_doit*
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 lib/Debian/Debhelper/Buildsystem.pm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/Debian/Debhelper/Buildsystem.pm b/lib/Debian/Debhelper/Buildsystem.pm
index 12f8e07..8f7939d 100644
--- a/lib/Debian/Debhelper/Buildsystem.pm
+++ b/lib/Debian/Debhelper/Buildsystem.pm
@@ -320,7 +320,7 @@ sub _in_dir {
 # top directory.
 sub doit_in_sourcedir {
 	my ($this, @args) = @_;
-	$this->_in_dir($this->get_sourcedir, \&print_and_doit, @args);
+	print_and_doit({ chdir => $this->get_sourcedir }, @args);
 	return 1;
 }
 
@@ -329,7 +329,7 @@ sub doit_in_sourcedir {
 # top directory. Errors are ignored.
 sub doit_in_sourcedir_noerror {
 	my ($this, @args) = @_;
-	return $this->_in_dir($this->get_sourcedir, \&print_and_doit_noerror, @args);
+	return print_and_doit_noerror({ chdir => $this->get_sourcedir }, @args);
 }
 
 # Changes working directory to the build directory (if needed),
@@ -337,7 +337,7 @@ sub doit_in_sourcedir_noerror {
 # top directory.
 sub doit_in_builddir {
 	my ($this, @args) = @_;
-	$this->_in_dir($this->get_buildpath, \&print_and_doit, @args);
+	print_and_doit({ chdir => $this->get_buildpath }, @args);
 	return 1;
 }
 
@@ -346,7 +346,7 @@ sub doit_in_builddir {
 # top directory. Errors are ignored.
 sub doit_in_builddir_noerror {
 	my ($this, @args) = @_;
-	return $this->_in_dir($this->get_buildpath, \&print_and_doit_noerror, @args);
+	return print_and_doit_noerror({ chdir => $this->get_buildpath }, @args);
 }
 
 # Changes working directory to the build directory (if needed),

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




More information about the debhelper-devel mailing list